public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Daniel Campbell" <zlg@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/astyle/
Date: Sun, 18 Jun 2017 06:23:11 +0000 (UTC)	[thread overview]
Message-ID: <1497766391.78c1b9a8d372476580544910b6e2ffab379c6d54.zlg@gentoo> (raw)

commit:     78c1b9a8d372476580544910b6e2ffab379c6d54
Author:     Daniel Campbell <zlg <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 18 06:12:26 2017 +0000
Commit:     Daniel Campbell <zlg <AT> gentoo <DOT> org>
CommitDate: Sun Jun 18 06:13:11 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78c1b9a8

dev-util/astyle: version bump

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 dev-util/astyle/Manifest          |  1 +
 dev-util/astyle/astyle-3.0.ebuild | 84 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 85 insertions(+)

diff --git a/dev-util/astyle/Manifest b/dev-util/astyle/Manifest
index 724f9762026..5579968a746 100644
--- a/dev-util/astyle/Manifest
+++ b/dev-util/astyle/Manifest
@@ -1,3 +1,4 @@
 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_linux.tar.gz 172303 SHA256 983e4fe87f20427ddf0d06fa5ba046b5ee95347f9ada33a681af3892426a4ff3 SHA512 77ef75139b08a91829373558753d78a3253f23a2a53a81f591d8877ba31b9a5163fbe8453894366aebbe287051259a568e725ee3b5e68d8ed4852a12d7798f9d WHIRLPOOL a6fb79f6202df85260adbf92ce529efc905bd9aaa093d7fa270d39adf9d34146a365479376dc9271cdc9334cb4f15c782436a1f2d0fdbc03be8a7979c38f23d6

diff --git a/dev-util/astyle/astyle-3.0.ebuild b/dev-util/astyle/astyle-3.0.ebuild
new file mode 100644
index 00000000000..4392d25b3df
--- /dev/null
+++ b/dev-util/astyle/astyle-3.0.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.0
+	dolib.so lib${PN}.so.${PV}.0
+	# ex: libastyle.so.3
+	dosym lib${PN}.so.${PV}.0 /usr/$(get_libdir)/lib${PN}.so.$(get_major_version)
+	if use java ; then
+		dolib.so lib${PN}j.so.${PV}.0
+		dosym lib${PN}j.so.${PV}.0 /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
+}


             reply	other threads:[~2017-06-18  6:23 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-18  6:23 Daniel Campbell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-11 15:31 [gentoo-commits] repo/gentoo:master commit in: dev-util/astyle/ Alfredo Tupone
2024-08-03  6:19 Joonas Niilola
2024-08-03  6:17 Joonas Niilola
2024-08-02 16:19 Sam James
2024-08-02 16:19 Sam James
2024-08-02 16:19 Sam James
2024-08-02 13:45 Viorel Munteanu
2024-08-02 13:45 Viorel Munteanu
2024-08-02 13:45 Viorel Munteanu
2023-10-20  0:51 Sam James
2023-09-24  4:39 Sam James
2023-09-24  4:39 Sam James
2023-08-30  7:48 Sam James
2023-08-30  7:48 Sam James
2023-06-19 21:28 Sam James
2023-01-23  2:30 Matthias Maier
2023-01-23  2:30 Matthias Maier
2021-02-05 12:29 Sam James
2021-02-02 21:02 Sam James
2020-02-26 18:25 Andreas Sturmlechner
2018-10-24  7:34 Mikle Kolyada
2018-10-17 12:07 Thomas Deutschmann
2018-08-08 10:03 Guilherme Amadio
2018-05-29  0:41 Matthias Maier
2018-05-28 22:17 Matthias Maier
2018-05-28 22:17 Matthias Maier
2018-05-28 22:17 Matthias Maier
2018-05-28 22:17 Matthias Maier
2018-03-06 17:44 Amy Liffey
2018-03-06 16:08 Amy Liffey
2018-02-07  0:54 Matthias Maier
2017-12-19  6:50 Matthias Maier
2017-12-12 21:46 Daniel Campbell
2017-08-29 23:16 Thomas Deutschmann
2017-07-31 12:56 Tobias Klausmann
2017-07-30 10:57 Sergei Trofimovich
2017-06-23 19:39 Daniel Campbell
2017-06-18  6:23 Daniel Campbell
2017-01-02 14:36 Daniel Campbell
2016-03-18 19:11 Michał Górny
2016-03-06 22:20 Daniel Campbell
2016-01-26  0:50 Daniel Campbell
2015-08-26 11:00 Agostino Sarubbo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1497766391.78c1b9a8d372476580544910b6e2ffab379c6d54.zlg@gentoo \
    --to=zlg@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox