From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-util/quilt/Manifest | 14 +++++ dev-util/quilt/files/quilt-0.50-no-graphviz.patch | 47 ++++++++++++++ .../quilt/files/quilt-0.63-bash-completion.patch | 17 +++++ dev-util/quilt/files/quilt-0.63-no-graphviz.patch | 43 +++++++++++++ dev-util/quilt/files/quilt-0.65-no-graphviz.patch | 43 +++++++++++++ dev-util/quilt/metadata.xml | 11 ++++ dev-util/quilt/quilt-0.50.ebuild | 58 +++++++++++++++++ dev-util/quilt/quilt-0.63.ebuild | 72 ++++++++++++++++++++++ dev-util/quilt/quilt-0.65.ebuild | 61 ++++++++++++++++++ dev-util/quilt/quilt-9999.ebuild | 68 ++++++++++++++++++++ 10 files changed, 434 insertions(+) create mode 100644 dev-util/quilt/Manifest create mode 100644 dev-util/quilt/files/quilt-0.50-no-graphviz.patch create mode 100644 dev-util/quilt/files/quilt-0.63-bash-completion.patch create mode 100644 dev-util/quilt/files/quilt-0.63-no-graphviz.patch create mode 100644 dev-util/quilt/files/quilt-0.65-no-graphviz.patch create mode 100644 dev-util/quilt/metadata.xml create mode 100644 dev-util/quilt/quilt-0.50.ebuild create mode 100644 dev-util/quilt/quilt-0.63.ebuild create mode 100644 dev-util/quilt/quilt-0.65.ebuild create mode 100644 dev-util/quilt/quilt-9999.ebuild (limited to 'dev-util/quilt') diff --git a/dev-util/quilt/Manifest b/dev-util/quilt/Manifest new file mode 100644 index 000000000000..13fa5cd680d8 --- /dev/null +++ b/dev-util/quilt/Manifest @@ -0,0 +1,14 @@ +AUX quilt-0.50-no-graphviz.patch 1477 SHA256 b08f087361427a66bc3b2246090e947a7207b397d67dd6278a18398f9456adbb SHA512 281c3f080e6ce6d4fd38e881b5cf111bc8313a9171a1c93edf9393b4f33eb0bd4fdb4c1b1df2cc888391acc6016c0eae9183948f5a76b8dc492e2ebb99f84f98 WHIRLPOOL a0c23194287e887de70231b1503a48579a76be6194fb0fc5d457225cf7674b2336778beeaac1148d03cf75d73ddccb1504af55c5b94a8cc7059eb97d46b0fe8d +AUX quilt-0.63-bash-completion.patch 584 SHA256 c6d58febd55980b84144cef31086b6271476ffbfdfc0477eac2342f7afe99b2d SHA512 6ec0a3d36d347573f791c7a8217f65a46c35b7fa510a5092b4d425814656f4ef0d9318da42020dc059caeaa631f13d3c5780bbb3ad19e20c87b60a60d32a7bc8 WHIRLPOOL bab8794008c47a1772708bc3abcbb1d68dbe6808c04b66ee79b90e5fb8f30a34f764e6b6cafe0bd88572060a34faa5e93ae9bec29a139466f792e51a7a1e2b33 +AUX quilt-0.63-no-graphviz.patch 1431 SHA256 6f9d2a28289882a604d7877ace3fdf746eaf93b9c1ff29c621449a48955ba808 SHA512 9e66299df9e83f8d89d25b9d72fccff60c2ada37029f3542667c267527fc4b9f36101c752b8393b137553e7ac277ee344158ca131e931c1a61103621ae4a7027 WHIRLPOOL eadc895becfb33fe03afa22dcf0c17c5d30cd53a4a7d8ffb3f48ef8826c38d98dd4d42c6e29641a53ddb990df5493907459c67af6273834d2646e74a2d3d5be4 +AUX quilt-0.65-no-graphviz.patch 1482 SHA256 04cfa4bd7d993c14675045769e36e8f48a37329a6b0c115a619d9d569ecadf25 SHA512 4a70ac2abf6e7f2a63d138035ca5a8194bf4fbee5ee2f7be8c3587cbc94104ffb7abca89e37b2b3bfe9063554bab358a86adb92e553ad72099d8baf35b48444d WHIRLPOOL e111c6a567e7cbb68ec971fb7e955ee0a1640f3528cd38c1583ee54dc1c38d63ad349056f30bcdbde2706dad95583acb7d7f1b6744942aff5042dc2785e0d3a7 +DIST quilt-0.50.tar.gz 452769 SHA256 fa4579628a98cf94472b36869e74f5cd0cb057d6fd13c1872a53f01c45aba8c3 SHA512 c6258872bc591b35e93ba09cc17b4954696faf391aff71b7789cc8cc58c4c54e51b605896937bd1aa54545eed6bf1e9b70352ad9b643f869154e6953c0340365 WHIRLPOOL d4823f9c1507fc3b29f605df855c53343bc0e0b300617b8203d9422d3fede2e1930ba9390329b3ee484fbeb7dde5535f9938c84ceee63477eb8fc0c705556822 +DIST quilt-0.63.tar.gz 389593 SHA256 2846788221aa8844c54f10239c7cbc5e88031859162bcc285449446c3cfffe52 SHA512 e6d5c601805b664a5586a557799e7b321b6b28f7ccec708f52aa96371c987e5791aa54418c9b89d34154e4967ddfe7a261e37195fd29b6aa529e8fa6e5007c45 WHIRLPOOL 89b72f38d75e479fc8f030398757ab325ab46ff79baa7227fe122c4902d582374971c8c5f562611f0c024e8b56db01858669cd0427338f2368492ff118f31280 +DIST quilt-0.65.tar.gz 410780 SHA256 f6cbc788e5cbbb381a3c6eab5b9efce67c776a8662a7795c7432fd27aa096819 SHA512 37dffe34fe209371f2fbc0af2dbb4dcfa6edd2221aed15f31a0651a0bd457f2af03a98450a3e63406f70e040e944246e5b23733b820665eeb3fd4ff2bdde3a08 WHIRLPOOL 533a355a690ff598caea35ac94d00822baf225b5bb59705ed2cf3d484a1db55068dd7d0ab1ccaedef403b1d0c2c3369037bbd04839899eba46b3ea516fbae4ae +EBUILD quilt-0.50.ebuild 1498 SHA256 baaf2d524f49593a8acc5bbb9a470170844d4d78cd2519ef6e21976c9e63442f SHA512 859ed76032223dace82c96f899a1fbbfe5e508223117ed6c5397e59950623f107bf3493c0a942475a079c90f5431a4c1197ab27f896a8a59739b1602d4eb1d80 WHIRLPOOL 00d2f78d03ae76abf1e71cf16deb2ced6f7f48e73f14f405a3ed7693fc3705f3845240a24cdccdddfb35843180a42aace534e1f70168e6312ed19e5b327e5b01 +EBUILD quilt-0.63.ebuild 1934 SHA256 e3492fdba9698c20ef3d6d002e62447c01a691352cb905113d288875b1ef7867 SHA512 5d60f84f0fa3abd6e15f428182523f9417b5541c3301374b60bfe3704aa2e488628d501f1dffd47028db92de44e95c8fc2e89217d9fe789faff7f56d6c636082 WHIRLPOOL 213f3e373bcd8481a0d5497e0d8d261450bd03a01bcbbf1b1e60627289f4d6417cfaa410295c8c7e09ca79430fa5fc06ff30ca6a00f4f43630bdcc27edfe906e +EBUILD quilt-0.65.ebuild 1647 SHA256 dd662d8c7d57e62652e0dda4623d54d252da4f7a348419b4f48834fcd57ef6fc SHA512 7be1c157aac11b74de9fe6bd2bb18719f9b5428f58ce8b9d1b1277eeba0f130f591c9815836c6d60004d8774bb5f463aaacdd9ae479ceaa00374fb73bcee49b3 WHIRLPOOL 89b17dab3e7858d09c9b7c23b1d41e47be4c5da302c97ecc808e1efdeafb409543959cc3643d7d55d5d09e2a9b05e7a1d56fbaf9da2f944e6304093bb385b378 +EBUILD quilt-9999.ebuild 1764 SHA256 cdf8a7e00e1a0b69240b314cce516f8bb1eed9bd960f909bc64fdcbcf66bed9c SHA512 ab39ceb5756c763b911a077ca98cde61143332b21708f62963ec0632ae3b02e4d319bc92a3b7c9fd74a5fbb04d6c537088bc63aeff1fc5b06f97fece2d07e2ef WHIRLPOOL c000826c2dd25191830322cfa33a1c405f6b1dee0930155dd351944f7714ebbb466c35636f6b833feebc67458cef5ca8bfc5745f8f817abc0c591d5dd9e7693c +MISC ChangeLog 2930 SHA256 7bf31bf2beaec60ad37fd3db8df313d214034587ba1320385429be3e566418a6 SHA512 4564a821d5b4d65a74a03c0d6b3893826a7925a3beef94ffcd58b8149aac1dc21411bbd63d40711e8dd21c2b77487832eb09da7410ab6ca1cbae60a44853c670 WHIRLPOOL c08e3548cb4c0d3e3fb87d1f5a6c96ddd86002527b56b8ab9b4833599fb3b42f9844d94e8fc2f4570a704f826de3c24f7f5c04deac10a1547ed875236e17c312 +MISC ChangeLog-2015 8469 SHA256 7b3cbc98dd6628f0c9d8d107e42192b9c914d3f282494fbba0f02147344b8956 SHA512 00ba079fa145513bdc95d89d6f0cf5f52cc53cdc0db63f5a4b31ea0294a8afbdcbea9d3a8eafe9bb3e8cc4e2722043f9a814bdd65fb309debc0330862a652a93 WHIRLPOOL 1add27d9e757ba2d41bfaa1705db3378ae64bda8be7a5ea4c330088e6cb43cdb39e0cb0f243ca63b0f5295e156af7f10308573b0676e55f1d3c0395efb21b3b5 +MISC metadata.xml 320 SHA256 0f1caacdad122229a02e84d5e14f5efa3c4e0d499f75d1ea6b39e748f7b0cb7f SHA512 7a8f43fb660058256892da7cad161a61a02629c1a1137919a768ac18dcc5a7e211944cba8c0aaaa33ba0b4c005bc17605706040e3bee8af923b1bdd7d4518cda WHIRLPOOL 6c4ca715ad909ba9ad6f21ef377673a52d75f6fcec98248b2fc96e2b8c31b8392b70e4610f3cf7776857e07079b9b8796c2b2d448529d235a823981633f243e1 diff --git a/dev-util/quilt/files/quilt-0.50-no-graphviz.patch b/dev-util/quilt/files/quilt-0.50-no-graphviz.patch new file mode 100644 index 000000000000..04e0d7d3a9a1 --- /dev/null +++ b/dev-util/quilt/files/quilt-0.50-no-graphviz.patch @@ -0,0 +1,47 @@ +Index: b/Makefile.in +=================================================================== +--- a/Makefile.in ++++ b/Makefile.in +@@ -82,8 +82,7 @@ QUILT := $(QUILT_IN) + SRC += $(QUILT_SRC:%=quilt/%) + DIRT += $(QUILT_IN:%=quilt/%) + +-SCRIPTS_IN := patchfns parse-patch inspect dependency-graph edmail \ +- remove-trailing-ws ++SCRIPTS_IN := patchfns parse-patch inspect edmail remove-trailing-ws + + SCRIPTS_SRC := $(SCRIPTS_IN:%=%.in) + SCRIPTS := $(SCRIPTS_IN) +Index: b/bash_completion +=================================================================== +--- a/bash_completion ++++ b/bash_completion +@@ -95,7 +95,7 @@ _quilt_completion() + prev=${COMP_WORDS[COMP_CWORD-1]} + + # quilt sub commands +- cmds='add annotate applied delete diff edit files fold fork graph \ ++ cmds='add annotate applied delete diff edit files fold fork \ + grep header import mail new next patches pop previous push refresh \ + remove rename revert series setup snapshot top unapplied' + +@@ -189,19 +189,6 @@ _quilt_completion() + ;; + esac + ;; +- graph) +- case $prev in +- -T) +- COMPREPLY=( $( compgen -W "ps" -- $cur ) ) +- ;; +- --edge-labels) +- COMPREPLY=( $( compgen -W "files" -- $cur ) ) +- ;; +- *) +- COMPREPLY=( $( compgen -W "-T -h --all --reduce --lines --edge-labels $(quilt applied 2>/dev/null)" -- $cur ) ) +- ;; +- esac +- ;; + grep) + _longopt grep + COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -W "-h" -- $cur ) ) diff --git a/dev-util/quilt/files/quilt-0.63-bash-completion.patch b/dev-util/quilt/files/quilt-0.63-bash-completion.patch new file mode 100644 index 000000000000..c85caca5c9e1 --- /dev/null +++ b/dev-util/quilt/files/quilt-0.63-bash-completion.patch @@ -0,0 +1,17 @@ +--- bash_completion.orig 2014-10-21 18:15:29.549789267 -0400 ++++ bash_completion 2014-10-21 18:15:38.489789221 -0400 +@@ -11,8 +11,6 @@ + # completion to work then you must set QUILT_PC in your global environment + # (for example in ~/.profile) and not just in your quiltrc file. + +-if type quilt &> /dev/null ; then +- + if ! type _expand &> /dev/null ; then + # This function expands tildes in pathnames + # +@@ -310,5 +308,3 @@ _quilt_completion() + && _quilt_complete_opt="-o filenames" + complete -F _quilt_completion $_quilt_complete_opt quilt + unset -v _quilt_complete_opt +- +-fi diff --git a/dev-util/quilt/files/quilt-0.63-no-graphviz.patch b/dev-util/quilt/files/quilt-0.63-no-graphviz.patch new file mode 100644 index 000000000000..80458120f4f1 --- /dev/null +++ b/dev-util/quilt/files/quilt-0.63-no-graphviz.patch @@ -0,0 +1,43 @@ +--- Makefile.in.orig 2014-10-21 17:08:25.639810130 -0400 ++++ Makefile.in 2014-10-21 17:09:03.269809935 -0400 +@@ -79,8 +79,7 @@ QUILT := $(QUILT_IN) + SRC += $(QUILT_SRC:%=quilt/%) + DIRT += $(QUILT_IN:%=quilt/%) + +-SCRIPTS_IN := patchfns inspect dependency-graph edmail \ +- remove-trailing-ws backup-files ++SCRIPTS_IN := patchfns inspect edmail remove-trailing-ws backup-files + + SCRIPTS_SRC := $(SCRIPTS_IN:%=%.in) + SCRIPTS := $(SCRIPTS_IN) +--- bash_completion.orig 2014-10-21 17:09:08.789809906 -0400 ++++ bash_completion 2014-10-21 17:09:53.189809676 -0400 +@@ -100,7 +100,7 @@ _quilt_completion() + prev=${COMP_WORDS[COMP_CWORD-1]} + + # quilt sub commands +- cmds='add annotate applied delete diff edit files fold fork graph \ ++ cmds='add annotate applied delete diff edit files fold fork \ + grep header import mail new next patches pop previous push refresh \ + remove rename revert series setup snapshot top unapplied' + +@@ -194,19 +194,6 @@ _quilt_completion() + ;; + esac + ;; +- graph) +- case $prev in +- -T) +- COMPREPLY=( $( compgen -W "ps" -- $cur ) ) +- ;; +- --edge-labels) +- COMPREPLY=( $( compgen -W "files" -- $cur ) ) +- ;; +- *) +- COMPREPLY=( $( compgen -W "-T -h --all --reduce --lines --edge-labels $(quilt --quiltrc - applied 2>/dev/null)" -- $cur ) ) +- ;; +- esac +- ;; + grep) + _longopt grep + COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -W "-h" -- $cur ) ) diff --git a/dev-util/quilt/files/quilt-0.65-no-graphviz.patch b/dev-util/quilt/files/quilt-0.65-no-graphviz.patch new file mode 100644 index 000000000000..ea06a9eebefb --- /dev/null +++ b/dev-util/quilt/files/quilt-0.65-no-graphviz.patch @@ -0,0 +1,43 @@ +--- Makefile.in.orig 2017-04-12 09:27:40.853018901 -0400 ++++ Makefile.in 2017-04-12 09:36:16.584315529 -0400 +@@ -78,8 +78,7 @@ QUILT := $(QUILT_IN) + SRC += $(QUILT_SRC:%=quilt/%) + DIRT += $(QUILT_IN:%=quilt/%) + +-SCRIPTS_IN := patchfns inspect-wrapper dependency-graph edmail \ +- remove-trailing-ws backup-files ++SCRIPTS_IN := patchfns inspect-wrapper edmail remove-trailing-ws backup-files + + SCRIPTS_SRC := $(SCRIPTS_IN:%=%.in) + SCRIPTS := $(SCRIPTS_IN) +--- bash_completion.orig 2017-04-12 09:27:57.643126246 -0400 ++++ bash_completion 2017-04-12 09:30:27.673938451 -0400 +@@ -28,7 +28,7 @@ _quilt_completion() + prev=${COMP_WORDS[COMP_CWORD-1]} + + # quilt sub commands +- cmds='add annotate applied delete diff edit files fold fork graph \ ++ cmds='add annotate applied delete diff edit files fold fork \ + grep header import mail new next patches pop previous push refresh \ + remove rename revert series setup snapshot top unapplied upgrade' + +@@ -122,19 +122,6 @@ _quilt_completion() + ;; + esac + ;; +- graph) +- case $prev in +- -T) +- COMPREPLY=( $( compgen -W "ps" -- $cur ) ) +- ;; +- --edge-labels) +- COMPREPLY=( $( compgen -W "files" -- $cur ) ) +- ;; +- *) +- COMPREPLY=( $( compgen -W "-T -h --all --reduce --lines --edge-labels $(quilt --quiltrc - applied 2>/dev/null)" -- $cur ) ) +- ;; +- esac +- ;; + grep) + type _longopt &> /dev/null && _longopt grep + COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W "-h" -- $cur ) ) diff --git a/dev-util/quilt/metadata.xml b/dev-util/quilt/metadata.xml new file mode 100644 index 000000000000..8b375ab7cfb6 --- /dev/null +++ b/dev-util/quilt/metadata.xml @@ -0,0 +1,11 @@ + + + + + mpagano@gentoo.org + + + suse@gentoo.org + SUSE + + diff --git a/dev-util/quilt/quilt-0.50.ebuild b/dev-util/quilt/quilt-0.50.ebuild new file mode 100644 index 000000000000..bdd72d31598f --- /dev/null +++ b/dev-util/quilt/quilt-0.50.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit bash-completion-r1 eutils + +DESCRIPTION="quilt patch manager" +HOMEPAGE="https://savannah.nongnu.org/projects/quilt" +SRC_URI="https://savannah.nongnu.org/download/quilt/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ppc ppc64 sparc x86" +IUSE="emacs graphviz" + +RDEPEND="sys-apps/ed + dev-util/diffstat + graphviz? ( media-gfx/graphviz ) + >=sys-apps/coreutils-8.5" + +PDEPEND="emacs? ( app-emacs/quilt-el )" + +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 + epause 5 +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # Add support for USE=graphviz + use graphviz || epatch "${FILESDIR}/${P}-no-graphviz.patch" + + # Some tests are somewhat broken while being run from within portage, work + # fine if you run them manually + rm "${S}"/test/delete.test "${S}"/test/mail.test +} + +src_install() { + emake BUILD_ROOT="${D}" install || die "make install failed" + + rm -rf "${D}"/usr/share/doc/${P} + dodoc AUTHORS TODO quilt.changes doc/README doc/README.MAIL \ + doc/quilt.pdf + + rm -rf "${D}"/etc/bash_completion.d + newbashcomp bash_completion ${PN} + + # Remove the compat symlinks + rm -rf "${D}"/usr/share/quilt/compat + + # Remove Emacs mode; newer version is in app-emacs/quilt-el, bug 247500 + rm -rf "${D}"/usr/share/emacs +} diff --git a/dev-util/quilt/quilt-0.63.ebuild b/dev-util/quilt/quilt-0.63.ebuild new file mode 100644 index 000000000000..ea76c38419cf --- /dev/null +++ b/dev-util/quilt/quilt-0.63.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit bash-completion-r1 eutils + +DESCRIPTION="quilt patch manager" +HOMEPAGE="https://savannah.nongnu.org/projects/quilt" +SRC_URI="https://savannah.nongnu.org/download/quilt/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris" +IUSE="emacs graphviz elibc_Darwin elibc_SunOS" + +RDEPEND="sys-apps/ed + dev-util/diffstat + graphviz? ( media-gfx/graphviz ) + elibc_Darwin? ( app-misc/getopt ) + elibc_SunOS? ( app-misc/getopt ) + >=sys-apps/coreutils-8.5" + +PDEPEND="emacs? ( app-emacs/quilt-el )" + +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_unpack() { + unpack ${A} + + # Some tests are somewhat broken while being run from within portage, work + # fine if you run them manually + rm "${S}"/test/delete.test "${S}"/test/mail.test +} + +src_prepare() { + + # Apply bash-competion patch see bug #526294 + epatch "${FILESDIR}/${P}-bash-completion.patch" + + # Add support for USE=graphviz + use graphviz || epatch "${FILESDIR}/${P}-no-graphviz.patch" +} + +src_configure() { + local myconf="" + [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] && \ + myconf="${myconf} --with-getopt=${EPREFIX}/usr/bin/getopt-long" + econf ${myconf} +} + +src_install() { + emake BUILD_ROOT="${D}" install || die "make install failed" + + rm -rf "${ED}"/usr/share/doc/${P} + dodoc AUTHORS TODO doc/README doc/README.MAIL doc/quilt.pdf + + rm -rf "${ED}"/etc/bash_completion.d + newbashcomp bash_completion ${PN} + + # Remove the compat symlinks + rm -rf "${ED}"/usr/share/quilt/compat + + # Remove Emacs mode; newer version is in app-emacs/quilt-el, bug 247500 + rm -rf "${ED}"/usr/share/emacs +} diff --git a/dev-util/quilt/quilt-0.65.ebuild b/dev-util/quilt/quilt-0.65.ebuild new file mode 100644 index 000000000000..40ccf8926d5c --- /dev/null +++ b/dev-util/quilt/quilt-0.65.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit bash-completion-r1 eutils + +DESCRIPTION="quilt patch manager" +HOMEPAGE="https://savannah.nongnu.org/projects/quilt" +SRC_URI="https://savannah.nongnu.org/download/quilt/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris" +IUSE="emacs graphviz elibc_Darwin elibc_SunOS" + +RDEPEND="sys-apps/ed + dev-util/diffstat + graphviz? ( media-gfx/graphviz ) + elibc_Darwin? ( app-misc/getopt ) + elibc_SunOS? ( app-misc/getopt ) + >=sys-apps/coreutils-8.5" + +PDEPEND="emacs? ( app-emacs/quilt-el )" + +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 || epatch "${FILESDIR}/${P}-no-graphviz.patch" +} + +src_configure() { + local myconf="" + [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] && \ + myconf="${myconf} --with-getopt=${EPREFIX}/usr/bin/getopt-long" + econf ${myconf} +} + +src_install() { + emake BUILD_ROOT="${D}" install || die "make install failed" + + rm -rf "${ED}"/usr/share/doc/${P} + dodoc AUTHORS TODO doc/README doc/README.MAIL doc/quilt.pdf + + rm -rf "${ED}"/etc/bash_completion.d + newbashcomp bash_completion ${PN} + + # Remove the compat symlinks + rm -rf "${ED}"/usr/share/quilt/compat + + # Remove Emacs mode; newer version is in app-emacs/quilt-el, bug 247500 + rm -rf "${ED}"/usr/share/emacs +} diff --git a/dev-util/quilt/quilt-9999.ebuild b/dev-util/quilt/quilt-9999.ebuild new file mode 100644 index 000000000000..4a4042e9a2f0 --- /dev/null +++ b/dev-util/quilt/quilt-9999.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +EGIT_REPO_URI="git://git.sv.gnu.org/quilt.git" + +[[ ${PV} == 9999 ]] && inherit git-2 + +inherit bash-completion-r1 eutils + +DESCRIPTION="quilt patch manager" +HOMEPAGE="https://savannah.nongnu.org/projects/quilt" +[[ ${PV} == 9999 ]] || SRC_URI="https://savannah.nongnu.org/download/quilt/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +[[ ${PV} == 9999 ]] || \ +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris" +IUSE="graphviz elibc_Darwin elibc_SunOS" + +RDEPEND=" + dev-util/diffstat + mail-mta/sendmail + sys-apps/ed + elibc_Darwin? ( app-misc/getopt ) + elibc_SunOS? ( app-misc/getopt ) + >=sys-apps/coreutils-8.5 + graphviz? ( media-gfx/graphviz ) +" + +src_prepare() { + # Add support for USE=graphviz + use graphviz || epatch "${FILESDIR}/${PN}-0.60-no-graphviz.patch" + + # remove failing test, because it fails on root-build + rm -rf test/delete.test +} + +src_configure() { + local myconf="" + [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] && \ + myconf="${myconf} --with-getopt=${EPREFIX}/usr/bin/getopt-long" + econf ${myconf} +} + +src_install() { + emake BUILD_ROOT="${ED}" install + + rm -rf "${ED}"/usr/share/doc/${P} + dodoc AUTHORS TODO quilt.changes doc/README doc/README.MAIL \ + doc/quilt.pdf + + rm -rf "${ED}"/etc/bash_completion.d + newbashcomp bash_completion ${PN} + + # Remove the compat symlinks + rm -rf "${ED}"/usr/share/quilt/compat + + # Remove Emacs mode; newer version is in app-emacs/quilt-el, bug 247500 + rm -rf "${ED}"/usr/share/emacs +} + +pkg_postinst() { + if ! has_version app-emacs/quilt-el ; then + elog "If you plan to use quilt with emacs consider installing \"app-emacs/quilt-el\"" + fi +} -- cgit v1.2.3