diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-09-12 12:31:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-09-12 12:31:24 +0100 |
commit | 3ea54510168a7ed4271b85f7292beca67346bfe9 (patch) | |
tree | 560f44ef2b85e5594b847ab20454e58b35ecd7e2 /dev-util/astyle | |
parent | 65a36438d5b824f80023c282dadc3fcd5736b526 (diff) |
gentoo auto-resync : 12:09:2024 - 12:31:23
Diffstat (limited to 'dev-util/astyle')
-rw-r--r-- | dev-util/astyle/Manifest | 3 | ||||
-rw-r--r-- | dev-util/astyle/astyle-3.6.1.ebuild | 88 |
2 files changed, 91 insertions, 0 deletions
diff --git a/dev-util/astyle/Manifest b/dev-util/astyle/Manifest index b6c7f3488101..728dab26b7c2 100644 --- a/dev-util/astyle/Manifest +++ b/dev-util/astyle/Manifest @@ -1,7 +1,10 @@ DIST astyle-3.4.9.tar.bz2 229873 BLAKE2B f698ec0f3447caf64f324760f9d9feabeb9588f603fb1bfd60b5272cc12525e8c942c084b325f7be1bfe93663de360727ddf8bdc65d38c84512852106cb2f70b SHA512 6538e1e9464564819bd1d8eef041de063a74e8974d2cc5942046a03fa70bd5472c20438bfd270dcf1f00d250d961129ce53b5ad18646505837e176c4e0e3f00a 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.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 2225 BLAKE2B 78f81a8bad0b4c7e648bc7a626008c9af147673ea977e82ca4780a774f557331719e045358d171624c5fca2bcbd6a5e4a59c6d2768244e41d0734c9325d0e908 SHA512 5f1f2085f4775c19bae79a0de8370b07d2745ad554bf2f2a592946d9176ed261e32694700f0fc0e1b42e29a8067fc073b112084174e1c195e0960916a3c15e98 MISC metadata.xml 728 BLAKE2B 8928b84671119c82cba6cf161e7255d0fd3c0006ee9d81b3bdfba6683e6267c9ab99c606149b9f15c672da485f751feb6165a400d7c123b2bb8540c9d6919674 SHA512 186d0cff75a1deb2d3d72dd17a0775db105a17eb48a0a97c4ae8f5b9156f326bce3b3ac3a301e470457650f97f5e9a647b1325c129f3319cadcaf92ce2209f21 diff --git a/dev-util/astyle/astyle-3.6.1.ebuild b/dev-util/astyle/astyle-3.6.1.ebuild new file mode 100644 index 000000000000..401c4b1a41b8 --- /dev/null +++ b/dev-util/astyle/astyle-3.6.1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2024 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="examples java static-libs" + +COMMON_DEPEND=" + app-arch/xz-utils +" +DEPEND="${COMMON_DEPEND} + java? ( >=virtual/jdk-1.8:* ) +" +RDEPEND="${COMMON_DEPEND} + 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 +} + +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 + if use static-libs ; then + dolib.a 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 +} |