diff options
Diffstat (limited to 'dev-util')
| -rw-r--r-- | dev-util/crash/Manifest | 3 | ||||
| -rw-r--r-- | dev-util/crash/crash-9.0.0.ebuild (renamed from dev-util/crash/crash-8.0.5.ebuild) | 8 | ||||
| -rw-r--r-- | dev-util/flawfinder/flawfinder-2.0.19-r2.ebuild | 2 | ||||
| -rw-r--r-- | dev-util/goland/Manifest | 4 | ||||
| -rw-r--r-- | dev-util/goland/goland-2024.3.5.ebuild | 110 | ||||
| -rw-r--r-- | dev-util/goland/goland-2025.1.ebuild | 110 | ||||
| -rw-r--r-- | dev-util/goland/metadata.xml | 8 | ||||
| -rw-r--r-- | dev-util/perf/perf-6.14.ebuild | 2 | ||||
| -rw-r--r-- | dev-util/pkgcruft/pkgcruft-9999.ebuild | 32 | ||||
| -rw-r--r-- | dev-util/quilt/Manifest | 1 | ||||
| -rw-r--r-- | dev-util/quilt/quilt-0.69.ebuild | 75 |
11 files changed, 317 insertions, 38 deletions
diff --git a/dev-util/crash/Manifest b/dev-util/crash/Manifest index 0c5e331d0fae..ab72345ab834 100644 --- a/dev-util/crash/Manifest +++ b/dev-util/crash/Manifest @@ -1,4 +1,5 @@ DIST crash-8.0.3-extra-0.tar.xz 696 BLAKE2B 1a90e1b7ba87188cd438e8f9ca17276986b6fdeee00804a3dadf2979bfab0769bcf7df3bedaba75bdf9297eeb013929ba6ea0b98b228fa51d9a7fa09a77c01cf SHA512 c0f29c3b13ccbbc8a0c3366ec75797501c141e3c9c1085dbea1bec89e1b35b837528fabf0fe031e0cb2d725780bffb71e1f27657e75dd9aa2f0c4bc625d251b2 -DIST crash-8.0.5.tar.gz 1436933 BLAKE2B a3e940167a83b901d3842d10add29e55f49188a0cc6430f975242c8365742cbb75d7f5f36f26eff51e5bc1a9ac2e893de4631378814cc2b27da3241f5062b788 SHA512 0e199899fcc479eeebd1177a88dfe26725d9f63361d5ff7dbf9cb0f8425d3c6b8d60aada0a4312f61eecfe0ed0cca346034e12accbf5896446db8d9fb7d55e05 DIST crash-8.0.6.tar.gz 1449888 BLAKE2B 5e0807358ba73f009ca1c2a6b5d2da9c61edd1ebecefaaa8d267c85cf7aecd4703f9b4d9e253a19e4894bb4f8572f99653d4b27cea2ee3d5b6415694755b070c SHA512 a569c0e9cb9dddbdd4bf54b6157b33eb2ed0fef143fd8128e660cf3a7156a23c25d17736fb0711781457d92a1ec8c153a6c020d1847adc57ecc0b5b085ddbfdc +DIST crash-9.0.0.tar.gz 1363753 BLAKE2B 7b018c7db691b34b81f227956690411c8f37c5b3243e1d28b1fdcee446eaaa9a37c165d1a6d62ba4b347c7c8f320925f4f406fea2fa3ea158f1468e16912a85d SHA512 1093bc1f980e6df24e9d254ee86c4164a2283f82d3dff5a8feecb08caccec1639896712bb73e781fed7e21ab7f81e344a4d76566bfbe6615f3484816e3163306 DIST gdb-10.2.tar.gz 40267550 BLAKE2B cee3ab45a52ed378fc718e49c4d153393200fd1b85306888e4085919ab27277bb85d66f9297e6d0aaa1fb47d65fc31d4b97a2fc476e2ccedd4dba0fbec778ab4 SHA512 aa89caf47c1c84366020377d47e7c51ddbc48e5b7686f244e38797c8eb88411cf57fcdc37eb669961efb41ceeac4181747f429625fd1acce7712cb9a1fea9c41 +DIST gdb-16.2.tar.gz 41593955 BLAKE2B aa2d7eb85819c16c5cc4c5b887d9eabac251eade257b9d48cc0d9a65b97b498c0ddbfb35a5187947c6691b03d2b176779ce577669cbeb17763f81e88053c2d50 SHA512 c44a6cf6cdd6e92f1f4dda7d888ce3e7fdde65ca8736092e2b0a4c369ea09b499824a1d078f668f276fa6d00d311e9ec485231cb7b841479a4fabbfd65778084 diff --git a/dev-util/crash/crash-8.0.5.ebuild b/dev-util/crash/crash-9.0.0.ebuild index 07c7577c7308..f2dafa2e6b5e 100644 --- a/dev-util/crash/crash-8.0.5.ebuild +++ b/dev-util/crash/crash-9.0.0.ebuild @@ -1,13 +1,13 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit flag-o-matic toolchain-funcs -GDB_VERSION=10.2 +GDB_VERSION=16.2 UPSTREAM_VER= -EXTRA_VER=0 +EXTRA_VER= if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="https://github.com/crash-utility/crash.git" @@ -50,7 +50,7 @@ src_prepare() { fi sed -i -e "s|ar -rs|\${AR} -rs|g" Makefile || die - ln -s "${DISTDIR}"/gdb-10.2.tar.gz . || die + ln -s "${DISTDIR}"/gdb-${GDB_VERSION}.tar.gz . || die } src_configure() { diff --git a/dev-util/flawfinder/flawfinder-2.0.19-r2.ebuild b/dev-util/flawfinder/flawfinder-2.0.19-r2.ebuild index 0f470e0b4bd5..97796a0cea67 100644 --- a/dev-util/flawfinder/flawfinder-2.0.19-r2.ebuild +++ b/dev-util/flawfinder/flawfinder-2.0.19-r2.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz" LICENSE="GPL-2+" SLOT="0" -KEYWORDS="amd64 ~mips ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" +KEYWORDS="amd64 ~arm64 ~mips ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" PATCHES=( "${FILESDIR}"/${PN}-2.0.18-setup.patch ) diff --git a/dev-util/goland/Manifest b/dev-util/goland/Manifest index 8386f576b0c8..27130f3db48d 100644 --- a/dev-util/goland/Manifest +++ b/dev-util/goland/Manifest @@ -1,2 +1,6 @@ DIST goland-2022.3.3-aarch64.tar.gz 669196391 BLAKE2B bf19290a73d9a0e268f90420a4aa3962da842fcc59e2323b9631cf6c511fdd48b2663164e15e587fbee6ba0f51650798eb91d41c750a64c2760ceaa2fe74d13f SHA512 b75ef4063adb8e75b8c20b9f762c7b9d5a1614d666cc81ba21e25728a55a2ee83343eabce29bc7f90eab03ec0eeca9ce2c9dba2016330491e9f16313f0087157 DIST goland-2022.3.3.tar.gz 673567402 BLAKE2B e1771f0890e12e43099d50907aeaa479dedab514f2900cef738e7a9a37314376cf37155e04e55dfeb5e783f6b3f1ebb96f33005d39b8d01404502486adf91416 SHA512 e5a216a2f31698f226bcc58ed5f7c7efd0110f93f001c6de20d2fee25cfd7b816bda59f1f6fda5c0052cfa0d5aa1e089c7f2a7d2a6cedc64a6fd3c7319359030 +DIST goland-2024.3.5-aarch64.tar.gz 1108972234 BLAKE2B 6f9cf2b9d5b61b4608dde0006b282ca929484d2a74a918806efdde032bf8239b23ef00bf46f5c3b33a7cfd77625e5588f474f5524cfed20b9ca14fdf81db252f SHA512 e6acbd595531ee66ed132d4f70df3fa2c3181e126c7570a083df89d87f203789263576f96c496593d311866475c4f845d50e08dd137556bcc26ece810568fa27 +DIST goland-2024.3.5.tar.gz 1109319258 BLAKE2B 03c0f91313f492b2db3cbc139eef866193d17a56f4f20a45a64c7cf9a27f36cd9ebf87c95689cb406dabbe7f147a6802fa27a4eab2b33acb5c732e470b21836b SHA512 40a81c037d29210294920bf6400778104bc20dde37966c6f9305e0003ca546cb582aa4aa1fb74001e6c340d0c25b692dd84f6d3c881381b06fc20ea57842636d +DIST goland-2025.1-aarch64.tar.gz 1117409123 BLAKE2B 2fa42ac22ce494296eb1404744d30d81d7316c8c887f020b619d57855dafec3b44d02921e085261238ca79373396fdc7c86696bfa7f49413eb6b8d7161cda007 SHA512 e2d0508f443a6f7de9085d40b1e428c3d6a88c9985ecbb5cf3c8d0c1972a98a3e65166e5702a3702da14a15ee74aae97bc3166909e4d408fc5f51d9f6309b81e +DIST goland-2025.1.tar.gz 1120023437 BLAKE2B 6a7ea2ac5c4bfa3a2bdcd84425ff7045d36d89541d703328fc6247f4a6cebbf7655f39e1d9da97298ae266ae6e53e2391dced3be9c3014afe9a4516dc8d4a8f3 SHA512 4ef5eac89186334ec04cda6c8668b1b4651b0955bbe87d9d80646d9e6f7c547967a628973f8393fd003a1dcf5118013347120552f6f7331ebdb4ecfea6c84ff9 diff --git a/dev-util/goland/goland-2024.3.5.ebuild b/dev-util/goland/goland-2024.3.5.ebuild new file mode 100644 index 000000000000..b7ccbfbe65a7 --- /dev/null +++ b/dev-util/goland/goland-2024.3.5.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop wrapper toolchain-funcs + +DESCRIPTION="Golang IDE by JetBrains" +HOMEPAGE="https://www.jetbrains.com/go/" +SRC_URI=" + amd64? ( https://download.jetbrains.com/go/${P}.tar.gz ) + arm64? ( https://download.jetbrains.com/go/${P}-aarch64.tar.gz ) +" +S="${WORKDIR}/GoLand-${PV}" +LICENSE="|| ( JetBrains-business JetBrains-classroom JetBrains-educational JetBrains-individual ) + Apache-2.0 + BSD + CC0-1.0 + CDDL + CDDL-1.1 + EPL-1.0 + GPL-2 + GPL-2-with-classpath-exception + ISC + LGPL-2.1 + LGPL-3 + MIT + MPL-1.1 + OFL-1.1 + ZLIB +" +SLOT="0/2024" +KEYWORDS="~amd64 ~arm64" +IUSE="wayland" + +RESTRICT="bindist mirror" +QA_PREBUILT="opt/${P}/*" + +BDEPEND=" + dev-util/debugedit + dev-util/patchelf +" +RDEPEND=" + >=virtual/jre-17:* + dev-lang/go + dev-libs/wayland + sys-libs/pam + sys-process/audit +" + +src_prepare() { + tc-export OBJCOPY + default + + local remove_me=( + lib/async-profiler/aarch64 + plugins/go-plugin/lib/dlv/linuxarm/dlv + plugins/go-plugin/lib/dlv/linuxarmmusl/dlv + ) + + rm -rv "${remove_me[@]}" || die + + # excepting files that should be kept for remote plugins + local skip_nonx86_files=( + "./plugins/platform-ijent-impl/ijent-aarch64-unknown-linux-musl-release" + "./plugins/clion-radler/DotFiles/linux-musl-arm64/jb_zip_unarchiver" + "./plugins/clion-radler/DotFiles/linux-arm/jb_zip_unarchiver" + "./plugins/clion-radler/DotFiles/linux-musl-arm/jb_zip_unarchiver" + "./plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-linux-arm64" + ) + # removing debug symbols and relocating debug files as per #876295 + # we're escaping all the files that contain $() in their name + # as they should not be executed + find . -type f ! -name '*$(*)*' -print0 | while IFS= read -r -d '' file; do + for skip in "${skip_nonx86_files[@]}"; do + [[ ${file} == "${skip}" ]] && continue 2 + done + if file "${file}" | grep -qE "ELF (32|64)-bit"; then + ${OBJCOPY} --remove-section .note.gnu.build-id "${file}" || die + debugedit -b "${EPREFIX}/opt/${PN}" -d "/usr/lib/debug" -i "${file}" || die + fi + done + + patchelf --set-rpath '$ORIGIN' "jbr/lib/libjcef.so" || die + patchelf --set-rpath '$ORIGIN' "jbr/lib/jcef_helper" || die + + # As per https://blog.jetbrains.com/platform/2024/07/wayland-support-preview-in-2024-2/ for full wayland support + if use wayland; then + echo "-Dawt.toolkit.name=WLToolkit" >> bin/webstorm64.vmoptions || die + fi +} + +src_install() { + local dir="/opt/${P}" + + insinto "${dir}" + doins -r * + fperms 755 "${dir}"/bin/{format.sh,goland.sh,inspect.sh,ltedit.sh,remote-dev-server.sh,restarter,fsnotifier} + fperms 755 "${dir}"/jbr/bin/{java,javac,javadoc,jcmd,jdb,jfr,jhsdb,jinfo,jmap,jps,jrunscript,jstack,jstat,keytool,rmiregistry,serialver} + fperms 755 "${dir}"/jbr/lib/{chrome-sandbox,jcef_helper,jexec,jspawnhelper} + fperms 755 "${dir}"/plugins/go-plugin/lib/dlv/linux/dlv + + make_wrapper "${PN}" "${dir}/bin/${PN}.sh" + newicon "bin/${PN}.png" "${PN}.png" + make_desktop_entry "${PN}" "Goland ${PV}" "${PN}" "Development;IDE;" + + # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit + insinto /usr/lib/sysctl.d + newins - 30-"${PN}"-inotify-watches.conf <<<"fs.inotify.max_user_watches = 524288" +} diff --git a/dev-util/goland/goland-2025.1.ebuild b/dev-util/goland/goland-2025.1.ebuild new file mode 100644 index 000000000000..601ed1c0cfed --- /dev/null +++ b/dev-util/goland/goland-2025.1.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop wrapper toolchain-funcs + +DESCRIPTION="Golang IDE by JetBrains" +HOMEPAGE="https://www.jetbrains.com/go/" +SRC_URI=" + amd64? ( https://download.jetbrains.com/go/${P}.tar.gz ) + arm64? ( https://download.jetbrains.com/go/${P}-aarch64.tar.gz ) +" +S="${WORKDIR}/GoLand-${PV}" +LICENSE="|| ( JetBrains-business JetBrains-classroom JetBrains-educational JetBrains-individual ) + Apache-2.0 + BSD + CC0-1.0 + CDDL + CDDL-1.1 + EPL-1.0 + GPL-2 + GPL-2-with-classpath-exception + ISC + LGPL-2.1 + LGPL-3 + MIT + MPL-1.1 + OFL-1.1 + ZLIB +" +SLOT="0/2025" +KEYWORDS="~amd64 ~arm64" +IUSE="wayland" + +RESTRICT="bindist mirror" +QA_PREBUILT="opt/${P}/*" + +BDEPEND=" + dev-util/debugedit + dev-util/patchelf +" +RDEPEND=" + >=virtual/jre-17:* + dev-lang/go + dev-libs/wayland + sys-libs/pam + sys-process/audit +" + +src_prepare() { + tc-export OBJCOPY + default + + local remove_me=( + lib/async-profiler/aarch64 + plugins/go-plugin/lib/dlv/linuxarm/dlv + plugins/go-plugin/lib/dlv/linuxarmmusl/dlv + ) + + rm -rv "${remove_me[@]}" || die + + # excepting files that should be kept for remote plugins + local skip_nonx86_files=( + "./plugins/platform-ijent-impl/ijent-aarch64-unknown-linux-musl-release" + "./plugins/clion-radler/DotFiles/linux-musl-arm64/jb_zip_unarchiver" + "./plugins/clion-radler/DotFiles/linux-arm/jb_zip_unarchiver" + "./plugins/clion-radler/DotFiles/linux-musl-arm/jb_zip_unarchiver" + "./plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-linux-arm64" + ) + # removing debug symbols and relocating debug files as per #876295 + # we're escaping all the files that contain $() in their name + # as they should not be executed + find . -type f ! -name '*$(*)*' -print0 | while IFS= read -r -d '' file; do + for skip in "${skip_nonx86_files[@]}"; do + [[ ${file} == "${skip}" ]] && continue 2 + done + if file "${file}" | grep -qE "ELF (32|64)-bit"; then + ${OBJCOPY} --remove-section .note.gnu.build-id "${file}" || die + debugedit -b "${EPREFIX}/opt/${PN}" -d "/usr/lib/debug" -i "${file}" || die + fi + done + + patchelf --set-rpath '$ORIGIN' "jbr/lib/libjcef.so" || die + patchelf --set-rpath '$ORIGIN' "jbr/lib/jcef_helper" || die + + # As per https://blog.jetbrains.com/platform/2024/07/wayland-support-preview-in-2024-2/ for full wayland support + if use wayland; then + echo "-Dawt.toolkit.name=WLToolkit" >> bin/webstorm64.vmoptions || die + fi +} + +src_install() { + local dir="/opt/${P}" + + insinto "${dir}" + doins -r * + fperms 755 "${dir}"/bin/{format.sh,goland.sh,inspect.sh,ltedit.sh,remote-dev-server.sh,restarter,fsnotifier} + fperms 755 "${dir}"/jbr/bin/{java,javac,javadoc,jcmd,jdb,jfr,jhsdb,jinfo,jmap,jps,jrunscript,jstack,jstat,keytool,rmiregistry,serialver} + fperms 755 "${dir}"/jbr/lib/{chrome-sandbox,jcef_helper,jexec,jspawnhelper} + fperms 755 "${dir}"/plugins/go-plugin/lib/dlv/linux/dlv + + make_wrapper "${PN}" "${dir}/bin/${PN}.sh" + newicon "bin/${PN}.png" "${PN}.png" + make_desktop_entry "${PN}" "Goland ${PV}" "${PN}" "Development;IDE;" + + # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit + insinto /usr/lib/sysctl.d + newins - 30-"${PN}"-inotify-watches.conf <<<"fs.inotify.max_user_watches = 524288" +} diff --git a/dev-util/goland/metadata.xml b/dev-util/goland/metadata.xml index df3433af725b..92935894c1f1 100644 --- a/dev-util/goland/metadata.xml +++ b/dev-util/goland/metadata.xml @@ -5,6 +5,14 @@ <email>zx2c4@gentoo.org</email> <name>Jason A. Donenfeld</name> </maintainer> + <maintainer type="person"> + <email>stefan.cristian+git@rogentos.ro</email> + <name>Stefan Cristian B.</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> <upstream> <remote-id type="cpe">cpe:/a:jetbrains:goland</remote-id> </upstream> diff --git a/dev-util/perf/perf-6.14.ebuild b/dev-util/perf/perf-6.14.ebuild index 99e4b1b918ce..d8f17d85a1ae 100644 --- a/dev-util/perf/perf-6.14.ebuild +++ b/dev-util/perf/perf-6.14.ebuild @@ -34,7 +34,7 @@ S="${S_K}/tools/perf" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv x86 ~amd64-linux ~x86-linux" IUSE="abi_mips_o32 abi_mips_n32 abi_mips_n64 babeltrace capstone big-endian bpf caps crypt debug +doc gtk java libpfm +libtraceevent +libtracefs lzma numa perl +python +slang systemtap tcmalloc unwind" REQUIRED_USE=" diff --git a/dev-util/pkgcruft/pkgcruft-9999.ebuild b/dev-util/pkgcruft/pkgcruft-9999.ebuild index 66c1aeee6244..94a826b3e470 100644 --- a/dev-util/pkgcruft/pkgcruft-9999.ebuild +++ b/dev-util/pkgcruft/pkgcruft-9999.ebuild @@ -84,37 +84,7 @@ src_test() { --color always \ --all-features \ --tests \ - --no-fail-fast \ - -- \ - --skip 'commands::tests::check' \ - --skip 'dependency::tests::check' \ - --skip 'dependency_slot_missing::tests::check' \ - --skip 'eapi_stale::tests::check' \ - --skip 'eapi_status::tests::check' \ - --skip 'ebuild_name::tests::check' \ - --skip 'eclass::tests::check' \ - --skip 'filesdir::tests::check' \ - --skip 'header::tests::check' \ - --skip 'homepage::tests::check' \ - --skip 'ignore::tests::check' \ - --skip 'iuse::tests::check' \ - --skip 'keywords::tests::check' \ - --skip 'keywords_dropped::tests::check' \ - --skip 'license::tests::check' \ - --skip 'live::tests::check' \ - --skip 'manifest::tests::check' \ - --skip 'metadata::tests::check' \ - --skip 'properties::tests::check' \ - --skip 'python_update::tests::check' \ - --skip 'repo_layout::tests::check' \ - --skip 'restrict::tests::check' \ - --skip 'restrict_test_missing::tests::check' \ - --skip 'ruby_update::tests::check' \ - --skip 'src_uri::tests::check' \ - --skip 'unstable_only::tests::check' \ - --skip 'use_local::tests::check' \ - --skip 'variable_order::tests::check' \ - --skip 'whitespace::tests::check' + --no-fail-fast } src_install() { diff --git a/dev-util/quilt/Manifest b/dev-util/quilt/Manifest index 25d2ede09ae7..7fdadd3d4b13 100644 --- a/dev-util/quilt/Manifest +++ b/dev-util/quilt/Manifest @@ -1 +1,2 @@ DIST quilt-0.68.tar.gz 551096 BLAKE2B b012d0ccc0efaa2b645eafe9279a511a9fbd7546f22f35aebdb5488bde433e841472b907cacdd5f451e20a15b348f651028591f9a2d5b195613948f754c06cb5 SHA512 a2a58b330ccb3dd55b1f280310d506c605166bceedf7439582cdf8a198ca4aa34a375fd8bfd4027c540481bcdf5e6175eafd19707aaabe194b01cf7caa40572e +DIST quilt-0.69.tar.gz 553556 BLAKE2B cdbc3569291bac29306f8af622e277ec6b0bb3d5c1356e07bfb7c7998006f8339050225b2f520292a2c8a202a480060565c8d1c035b3935f4a7f99eb99c2136f SHA512 b9611ec85da6aebfb51c64923c5f0636fb7207c54921619b4f0796388fe566d7ab8b7058189f0b3157fca06314ce183206ddc1faaaa72f2bdddd8eeddb7834e9 diff --git a/dev-util/quilt/quilt-0.69.ebuild b/dev-util/quilt/quilt-0.69.ebuild new file mode 100644 index 000000000000..cd0d81a3c57b --- /dev/null +++ b/dev-util/quilt/quilt-0.69.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +inherit bash-completion-r1 elisp-common + +DESCRIPTION="quilt patch manager" +HOMEPAGE="https://savannah.nongnu.org/projects/quilt" +SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-2 GPL-1+" # any GPL version for quilt.el +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris" +IUSE="emacs graphviz" +# unresolved test failures +RESTRICT="test" + +RDEPEND="sys-apps/ed + dev-util/diffstat + graphviz? ( media-gfx/graphviz ) + elibc_Darwin? ( app-misc/getopt ) + elibc_SunOS? ( app-misc/getopt ) + sys-apps/coreutils + app-arch/zstd:=" + +PATCHES=( "${FILESDIR}"/${PN}-el-0.45.4-header-window.patch ) + +pkg_setup() { + use graphviz && return 0 + echo + elog "If you intend to use the folding functionality (graphical illustration of the" + elog "patch stack) then you'll need to remerge this package with USE=graphviz." + echo +} + +src_prepare() { + # Add support for USE=graphviz + use graphviz || PATCHES+=( "${FILESDIR}"/${PN}-0.66-no-graphviz.patch ) + default +} + +src_configure() { + local myconf=() + [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] \ + && myconf+=( "--with-getopt=${EPREFIX}/usr/bin/getopt-long" ) + econf "${myconf[@]}" +} + +src_compile() { + default + use emacs && elisp-compile lib/quilt.el +} + +src_install() { + emake BUILD_ROOT="${D}" install + + rm -rf "${ED}"/usr/share/doc/${P} + dodoc AUTHORS COPYING NEWS TODO "doc/README" "doc/README.MAIL" "doc/quilt.pdf" + + # Remove misplaced Emacs mode + rm -rf "${ED}"/usr/share/emacs || die + + if use emacs; then + elisp-install ${PN} lib/quilt.{el,elc} + elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el + dodoc doc/README.EMACS + fi + + rm -rf "${ED}"/etc/bash_completion.d + newbashcomp bash_completion ${PN} + + # Remove the compat symlinks + rm -rf "${ED}"/usr/share/quilt/compat +} |
