From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 811FE139694 for ; Sun, 18 Jun 2017 06:23:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A801EE0C39; Sun, 18 Jun 2017 06:23:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 741A5E0C39 for ; Sun, 18 Jun 2017 06:23:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 495FB341A33 for ; Sun, 18 Jun 2017 06:23:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BAD03747F for ; Sun, 18 Jun 2017 06:23:11 +0000 (UTC) From: "Daniel Campbell" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Daniel Campbell" Message-ID: <1497766878.24d49748ceeda74990d02ab068dfab92f7d294e7.zlg@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/astyle/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/astyle/Manifest dev-util/astyle/astyle-3.0.1.ebuild X-VCS-Directories: dev-util/astyle/ X-VCS-Committer: zlg X-VCS-Committer-Name: Daniel Campbell X-VCS-Revision: 24d49748ceeda74990d02ab068dfab92f7d294e7 X-VCS-Branch: master Date: Sun, 18 Jun 2017 06:23:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9926466c-a0f8-4876-9564-e5a2c9b9b96b X-Archives-Hash: 24ee627acfe7afb0064f827a88bab37e commit: 24d49748ceeda74990d02ab068dfab92f7d294e7 Author: Daniel Campbell gentoo org> AuthorDate: Sun Jun 18 06:21:18 2017 +0000 Commit: Daniel Campbell gentoo org> CommitDate: Sun Jun 18 06:21:18 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24d49748 dev-util/astyle: version bump (again) Package-Manager: Portage-2.3.6, Repoman-2.3.2 dev-util/astyle/Manifest | 1 + dev-util/astyle/astyle-3.0.1.ebuild | 84 +++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) diff --git a/dev-util/astyle/Manifest b/dev-util/astyle/Manifest index 5579968a746..fba8d49e322 100644 --- a/dev-util/astyle/Manifest +++ b/dev-util/astyle/Manifest @@ -1,4 +1,5 @@ DIST astyle_2.04_linux.tar.gz 156974 SHA256 70b37f4853c418d1e2632612967eebf1bdb93dfbe558c51d7d013c9b4e116b60 SHA512 bc0f6351fac4198ab969251342c4e453064b07512a2d06825a93c75daf86b06469c9971f35fbadad872d23368dc546019d8d174e07ceaad6e10007f562fdeffd WHIRLPOOL d9aa3f537885e373d791204652ed5c8d5231be0840ef5dde3714bb8c9c524e327585a51b7b14da1aae2952f7c9248401bc2769290bc5828d15f030f41d95c1fe DIST astyle_2.05.1_linux.tar.gz 152765 SHA256 fbdfc6f1966a972d19a215927266c76d4183eee235ed1e2bd7ec551c2a270eac SHA512 853bf84cb196f2300ca00fb7f18fe336764f1205ae0674a75c1a019bf734495d8fb3d9b6aca0ea258b6632921fb268906128c1afb80596532489749cd2cbe495 WHIRLPOOL ceef3bfa64632a4fe9afcc332fdf742e60b6e7d21655449372bd6c89db7444eddf6bbfee48684bb9f18e119cf040f36c62544cfc8bb040ed83095e9aed9fce56 DIST astyle_2.06_linux.tar.gz 162037 SHA256 3b7212210dc139e8f648e004b758c0be1b3ceb1694b22a879202d2b833db7c7e SHA512 e2da96b45d06385b284ed3107309dfa4fad904910a729232bdb8554b40332a673d33e1f153ffb2ebb0342c73098b79980628678be9dde45a4d4d23237fe8a8c5 WHIRLPOOL 02696ffbfb7f621d45ff8140f75cda38cce8587349269d9b87aba56a365f4375c7ce1ca67b3c0af8e1c6f627397d016ecc907437b4085599f24d2927b86c7878 +DIST astyle_3.0.1_linux.tar.gz 172483 SHA256 6c3ab029e0e4a75e2e603d449014374aa8269218fdd03a4aaa46ab743b1912fd SHA512 3e8d617c0ec89682bfb076081bb63ae9d44e897de0c85d5109b28adbbfe0620d5dacf59a4bd96ac30a5a4fcb3be136758e9c6fe2c69258b37956c212890a7158 WHIRLPOOL 62f5e81d37f22c45da890cdf7214ce1f7b30db64c29710c217b315d769e0f584eefa6907d2984e3577255ce031d43f90550ba2a5c5664397a651ca0b16d14671 DIST astyle_3.0_linux.tar.gz 172303 SHA256 983e4fe87f20427ddf0d06fa5ba046b5ee95347f9ada33a681af3892426a4ff3 SHA512 77ef75139b08a91829373558753d78a3253f23a2a53a81f591d8877ba31b9a5163fbe8453894366aebbe287051259a568e725ee3b5e68d8ed4852a12d7798f9d WHIRLPOOL a6fb79f6202df85260adbf92ce529efc905bd9aaa093d7fa270d39adf9d34146a365479376dc9271cdc9334cb4f15c782436a1f2d0fdbc03be8a7979c38f23d6 diff --git a/dev-util/astyle/astyle-3.0.1.ebuild b/dev-util/astyle/astyle-3.0.1.ebuild new file mode 100644 index 00000000000..e32b6189e88 --- /dev/null +++ b/dev-util/astyle/astyle-3.0.1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils flag-o-matic toolchain-funcs versionator java-pkg-opt-2 + +DESCRIPTION="Artistic Style is a re-indenter and reformatter for C++, C and Java source code" +HOMEPAGE="http://astyle.sourceforge.net/" +SRC_URI="mirror://sourceforge/astyle/astyle_${PV}_linux.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="examples java static-libs" + +DEPEND="app-arch/xz-utils + java? ( >=virtual/jdk-1.6:= )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}" + +src_prepare() { + if use java ; then + java-pkg-opt-2_src_prepare + sed -e "s:^\(JAVAINCS\s*\)=.*$:\1= $(java-pkg_get-jni-cflags):" \ + -e "s:ar crs:$(tc-getAR) crs:" \ + -i build/gcc/Makefile || die + else + default + fi +} + +src_configure() { + append-cxxflags -std=c++11 + tc-export CXX + default +} + +src_compile() { + emake -f ../build/gcc/Makefile -C src \ + ${PN} \ + shared \ + $(usev java) \ + $(usex static-libs static '') +} + +src_install() { + doheader src/${PN}.h + + pushd src/bin >/dev/null || die + dobin ${PN} + + # ex: libastyle.so.3.0.1 + dolib.so lib${PN}.so.${PV} + # ex: libastyle.so.3 + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.$(get_major_version) + if use java ; then + dolib.so lib${PN}j.so.${PV} + dosym lib${PN}j.so.${PV} /usr/$(get_libdir)/lib${PN}j.so.$(get_major_version) + fi + if use static-libs ; then + dolib lib${PN}.a + fi + popd >/dev/null || die + if use examples ; then + docinto examples + dodoc -r file/. + docompress -x /usr/share/doc/${PF}/examples + fi + local HTML_DOCS=( doc/. ) + einstalldocs +} + +pkg_postinst() { + if [[ -n "$REPLACING_VERSIONS" && "$(get_major_version $REPLACING_VERSIONS)" -lt 3 ]]; then + elog "Artistic Style 3.0 introduces new configuration verbiage more fitting" + elog "for modern use. Some options that were valid in 2.06 or older are now" + elog "deprecated. For more information, consult astyle's release notes at" + elog "http://astyle.sourceforge.net/news.html. To view offline, see:" + elog + elog "${ROOT}usr/share/doc/${P}/html" + fi +}