summaryrefslogtreecommitdiff
path: root/dev-util/astyle
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/astyle')
-rw-r--r--dev-util/astyle/Manifest5
-rw-r--r--dev-util/astyle/astyle-3.6.7.ebuild83
-rw-r--r--dev-util/astyle/metadata.xml10
3 files changed, 94 insertions, 4 deletions
diff --git a/dev-util/astyle/Manifest b/dev-util/astyle/Manifest
index f6500f7101af..36b3901e4a72 100644
--- a/dev-util/astyle/Manifest
+++ b/dev-util/astyle/Manifest
@@ -2,9 +2,12 @@ DIST astyle-3.4.9.tar.bz2 229873 BLAKE2B f698ec0f3447caf64f324760f9d9feabeb9588f
DIST astyle-3.4.9.tar.bz2.asc 488 BLAKE2B a5ed720e7c87f3603ba514e0fd15fb3a6687d913ec6cb41323aa5b1b38e76ac4ece310307ad23f8ba4c5d3e7b0cc00b78684d0c219fc50cd9e5db9c327c4f04b SHA512 b9f18e2c20b431b98859b996c52b31edbd9368d3a7ada1324f3139984f5480af860981f3b72802f548f2a73e53232f35fc2256a8a3eb7cc6a31685921682d9e4
DIST astyle-3.6.1.tar.bz2 230500 BLAKE2B 827bfdc14de670ada49556b564d50cf96e015a7e982e939e564faf7eaee4dfd3698257051b3a43ad0c2933307fa7ede727bf9ed8625b9761e6ae338b4b120a16 SHA512 b62fcedc6afe683fc466e86f572d3b39df59fd03c951406c6efff44b893c26df74ede315ffeec1a336f79773f7e1503361365f61e10fa1e07e97c036bd076320
DIST astyle-3.6.1.tar.bz2.asc 488 BLAKE2B 9af44cf696b3f7d62649a8f0ce9ae296263e5de5cd5032f96ef90f83fb762c1de92c91e470839e11dda228be14706406eb6eb31cdc06c9e74f42f4edc524ef91 SHA512 b297e6d4cf3fe6599ac25a8d792865f62e4fb5f917101d6615dd18b87840bc52e5e9be83b1fa25e85cc80a2838b28fbefecda2b70c3e73bff650447f3c8a8951
+DIST astyle-3.6.7.tar.bz2 219524 BLAKE2B a237889495d4f86259b0fc40b1f9f8dbeddf466b2457cf1983eed5d26b711ca10963e2e6a758f2e5b61810251d0d8153acc26b24cb32574f2342341a6dbbf0a9 SHA512 37f7bba118e768d8b9f41f975bab4060bdb7d6231ef84e56f97bed767264a604c029c202d3662b815484ab954bff832069d6267dda080d791a579ce79c99d252
+DIST astyle-3.6.7.tar.bz2.asc 488 BLAKE2B c056016c1e1817f0cfe638ee002b77844ad3a09eb840fb01dcf0771d9939a8e1d623543efd91ec2a5eb51f8484124da478c2d292c873a96f59566ff80064ba80 SHA512 9241b6c1beaaaa018d8a00aed592a48297f73368a23cd41ae1601cc3daa6870704548b00ba934873646495dd6456632afb5352cc15c6cc39b14d6be476a03fe3
DIST astyle_3.1_linux.tar.gz 185589 BLAKE2B d0bc9bf3403de89d207f33ac885c7cd57fd1e71314c947e1593ee24ade9ce36c83c6fd8e7021f44d8d3b344ea3add63fa5a7b246c40f10193dc38b51e7ad36bc SHA512 2e8f13d291abda66bbba30174c364c81a81a490e0a21376f7da7cf471644c22caa37b9eefb100d093bf26d1a8bfa9d2f14b4c2a9b75b3cb84428b4514e277ff2
EBUILD astyle-3.1-r2.ebuild 1904 BLAKE2B e8237566009bdb2e639a51e597c05ccbfc0fef48e02a960c263ce60222511831bb55ca8040807246cab4730dfab7353ee6f2ab8257ff7475c16839a2a4c50bf1 SHA512 f9640fe5a51ea4f78bf63b1923c6313a604894552597d4c8dce93c537035205f741d5b7acb16650cff80cba20144d984832a7ff49e68e1ad3d6e09f5352c05c2
EBUILD astyle-3.4.9-r1.ebuild 2225 BLAKE2B 78f81a8bad0b4c7e648bc7a626008c9af147673ea977e82ca4780a774f557331719e045358d171624c5fca2bcbd6a5e4a59c6d2768244e41d0734c9325d0e908 SHA512 5f1f2085f4775c19bae79a0de8370b07d2745ad554bf2f2a592946d9176ed261e32694700f0fc0e1b42e29a8067fc073b112084174e1c195e0960916a3c15e98
EBUILD astyle-3.4.9.ebuild 2146 BLAKE2B 4944318e4b5a5bae5b74e2859cdec40ea898189a3f484c1a56db0cef7ec8770ace93367eddd9e06872259b7245571c67ad172ea37290580c96196b4e84238eeb SHA512 b14e366d0c1d457d5c07887b5540d66845c516620b0970d7fcfe7b576948400f437d4aa436bd03cf8531c6907448912b0bcd53e0313e8501d4ffcf388358c2c6
EBUILD astyle-3.6.1.ebuild 2220 BLAKE2B aeceed50a5726e21e7eeea9f8132163a3da4e79ff43aafca6998ae1732dfa048e61385511c19e4fad4a1145afa776dee4f917e4f2736cfe877fbe348884092c0 SHA512 42363cba1a354c1bbea6508e2c8f3fd9d03ca36cefacffcbd55d28098629211ea158022e90aa7f8f661eb86d598570b7cb2b5a3c868cbf015d5b90f508c95362
-MISC metadata.xml 728 BLAKE2B 8928b84671119c82cba6cf161e7255d0fd3c0006ee9d81b3bdfba6683e6267c9ab99c606149b9f15c672da485f751feb6165a400d7c123b2bb8540c9d6919674 SHA512 186d0cff75a1deb2d3d72dd17a0775db105a17eb48a0a97c4ae8f5b9156f326bce3b3ac3a301e470457650f97f5e9a647b1325c129f3319cadcaf92ce2209f21
+EBUILD astyle-3.6.7.ebuild 2125 BLAKE2B 6f75eca67a0bddb568771db53bc6b99d16f58a3a9eeb1d35cac716dbde60f8982f4081ddbf3a87ff6463f30d83a38246a76e674d9ee6495384eda6ad7d577b21 SHA512 763014fa0ce2b9a068dec6541640e1cad08e70fe0f836ad470929dda05814d4ec59573ee16d9ea185b994843b9f52983a8cb144f6af56e4e2e7808e4c560e490
+MISC metadata.xml 871 BLAKE2B a9391bcb375300f29c2d0490be273ba5cff02b7886275113353f23ff0828da9c71bd26d249c1d8611b3329e0e11c88adc27d44f5286057ba4c93027455352ecc SHA512 cfd1c008a565ce1f9db86293ffbfb219e6dc6f999b86b13dbfae9ef605861c664d8063824263e81eded589a570d72dd4b584f05e11eefe6c77ba370672b07ae1
diff --git a/dev-util/astyle/astyle-3.6.7.ebuild b/dev-util/astyle/astyle-3.6.7.ebuild
new file mode 100644
index 000000000000..1203f19a91f1
--- /dev/null
+++ b/dev-util/astyle/astyle-3.6.7.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/andresimon.asc
+
+inherit toolchain-funcs java-pkg-opt-2 verify-sig
+
+DESCRIPTION="Artistic Style is a re-indenter and reformatter for C, C++ and Java source code"
+HOMEPAGE="https://astyle.sourceforge.net/ https://gitlab.com/saalen/astyle"
+SRC_URI="
+ https://downloads.sourceforge.net/astyle/${P}.tar.bz2
+ http://www.andre-simon.de/zip/${P}.tar.bz2
+ verify-sig? ( http://www.andre-simon.de/zip/${P}.tar.bz2.asc )
+"
+
+LICENSE="MIT"
+SLOT="0/3.2"
+KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="java static-libs"
+
+DOCS=( README.md examples/ )
+HTML_DOCS=( doc/. )
+
+DEPEND="java? ( >=virtual/jdk-1.8:* )"
+RDEPEND="java? ( >=virtual/jre-1.8:* )"
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-andresimon )"
+
+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
+
+ # rename examples directory for simpler installation
+ mv file/ examples/ || die
+}
+
+src_configure() {
+ tc-export CXX
+ default
+}
+
+src_compile() {
+ # ../build/clang/Makefile is identical except for CXX line.
+ emake CXX="$(tc-getCXX)" -f ../build/gcc/Makefile -C src \
+ ${PN} \
+ shared \
+ $(usev java) \
+ $(usev static-libs static)
+}
+
+src_install() {
+ doheader src/${PN}.h
+
+ pushd src/bin >/dev/null || die
+ dobin ${PN}
+
+ local libastylename="lib${PN}.so.${SLOT##*/}.0"
+ local libastylejname="lib${PN}j.so.${SLOT##*/}.0"
+ local libdestdir="/usr/$(get_libdir)"
+
+ dolib.so "${libastylename}"
+ dosym "${libastylename}" "${libdestdir}/lib${PN}.so.$(ver_cut 1 ${SLOT##*/})"
+ dosym "${libastylename}" "${libdestdir}/lib${PN}.so"
+
+ if use java; then
+ dolib.so "${libastylejname}"
+ dosym "${libastylejname}" "${libdestdir}/lib${PN}j.so.$(ver_cut 1 ${SLOT##*/})"
+ dosym "${libastylejname}" "${libdestdir}/lib${PN}j.so"
+ fi
+
+ use static-libs && dolib.a lib${PN}.a
+
+ popd >/dev/null || die
+
+ einstalldocs
+}
diff --git a/dev-util/astyle/metadata.xml b/dev-util/astyle/metadata.xml
index 71150eb53b50..7677d209f5e6 100644
--- a/dev-util/astyle/metadata.xml
+++ b/dev-util/astyle/metadata.xml
@@ -9,12 +9,16 @@
</longdescription>
<upstream>
<maintainer status="active">
- <email>jimp03@email.com</email>
+ <name>Andre Simon</name>
+ </maintainer>
+ <maintainer status="inactive">
<name>Jim Pattee</name>
+ <email>jimp03@email.com</email>
</maintainer>
- <remote-id type="gitlab">saalen/astyle</remote-id>
- <remote-id type="sourceforge">astyle</remote-id>
<bugs-to>https://sourceforge.net/p/astyle/bugs/</bugs-to>
<doc>https://astyle.sourceforge.net/astyle.html</doc>
+ <changelog>https://astyle.sourceforge.net/news.html</changelog>
+ <remote-id type="gitlab">saalen/astyle</remote-id>
+ <remote-id type="sourceforge">astyle</remote-id>
</upstream>
</pkgmetadata>