summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2019-04-16 11:27:06 +0200
committerBernard Cafarelli <voyageur@gentoo.org>2019-04-16 11:27:17 +0200
commite38f8d8c7d9dbfb869b6e330d94913a893c93b8a (patch)
tree016c3fa576d10d0c0a3f0763a5fab2f070a37ddc
parentdev-python/prometheus_client: Stabilize on amd64 (diff)
downloadgentoo-e38f8d8c7d9dbfb869b6e330d94913a893c93b8a.tar.gz
gentoo-e38f8d8c7d9dbfb869b6e330d94913a893c93b8a.tar.bz2
gentoo-e38f8d8c7d9dbfb869b6e330d94913a893c93b8a.zip
gnustep-base/gnustep-base: fix compressed man pages install
Closes: https://bugs.gentoo.org/667276 Package-Manager: Portage-2.3.63, Repoman-2.3.12 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
-rw-r--r--gnustep-base/gnustep-base/files/gnustep-base-1.26.0-no_compress_man.patch33
-rw-r--r--gnustep-base/gnustep-base/gnustep-base-1.26.0-r1.ebuild67
2 files changed, 100 insertions, 0 deletions
diff --git a/gnustep-base/gnustep-base/files/gnustep-base-1.26.0-no_compress_man.patch b/gnustep-base/gnustep-base/files/gnustep-base-1.26.0-no_compress_man.patch
new file mode 100644
index 000000000000..14b4f7007ad2
--- /dev/null
+++ b/gnustep-base/gnustep-base/files/gnustep-base-1.26.0-no_compress_man.patch
@@ -0,0 +1,33 @@
+diff -Naur gnustep-base-1.26.0.orig/Tools/Makefile.postamble gnustep-base-1.26.0/Tools/Makefile.postamble
+--- gnustep-base-1.26.0.orig/Tools/Makefile.postamble 2019-01-06 23:33:45.000000000 +0100
++++ gnustep-base-1.26.0/Tools/Makefile.postamble 2019-04-16 11:20:16.972915636 +0200
+@@ -50,8 +50,6 @@
+ for file in $(MAN1_PAGES) __done; do \
+ if [ $$file != __done ]; then \
+ $(INSTALL_DATA) $$file $(GNUSTEP_DOC_MAN)/man1/$$file; \
+- which gzip && rm -f $(GNUSTEP_DOC_MAN)/man1/$$file.gz \
+- && gzip -9 $(GNUSTEP_DOC_MAN)/man1/$$file; \
+ fi; \
+ done; \
+ if [ ! -f $(GNUSTEP_DOC_MAN)/man8 ]; then \
+@@ -59,8 +57,6 @@
+ fi; \
+ for file in $(MAN8_PAGES); do \
+ $(INSTALL_DATA) $$file $(GNUSTEP_DOC_MAN)/man8/$$file; \
+- which gzip && rm -f $(GNUSTEP_DOC_MAN)/man8/$$file.gz \
+- && gzip -9 $(GNUSTEP_DOC_MAN)/man8/$$file; \
+ done$(END_ECHO)
+ ifeq ($(GNUSTEP_GDOMAP_PORT_OVERRIDE),no)
+ ifeq ($(GNUSTEP_INSTALL_GDOMAP_AS_SETUID),no)
+diff -Naur gnustep-base-1.26.0.orig/Tools/make_strings/GNUmakefile.postamble gnustep-base-1.26.0/Tools/make_strings/GNUmakefile.postamble
+--- gnustep-base-1.26.0.orig/Tools/make_strings/GNUmakefile.postamble 2019-01-06 23:33:45.000000000 +0100
++++ gnustep-base-1.26.0/Tools/make_strings/GNUmakefile.postamble 2019-04-16 11:20:20.756920017 +0200
+@@ -44,8 +44,6 @@
+ for file in $(MAN1_PAGES) __done; do \
+ if [ $$file != __done ]; then \
+ $(INSTALL_DATA) $$file $(GNUSTEP_DOC_MAN)/man1/$$file; \
+- which gzip && rm -f $(GNUSTEP_DOC_MAN)/man1/$$file.gz \
+- && gzip -9 $(GNUSTEP_DOC_MAN)/man1/$$file; \
+ fi; \
+ done; \
+
diff --git a/gnustep-base/gnustep-base/gnustep-base-1.26.0-r1.ebuild b/gnustep-base/gnustep-base/gnustep-base-1.26.0-r1.ebuild
new file mode 100644
index 000000000000..754e3affeaa7
--- /dev/null
+++ b/gnustep-base/gnustep-base/gnustep-base-1.26.0-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit eutils gnustep-base
+
+DESCRIPTION="A library of general-purpose, non-graphical Objective C objects"
+HOMEPAGE="http://www.gnustep.org"
+SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
+IUSE="+gnutls +icu +libffi zeroconf"
+
+RDEPEND="${GNUSTEP_CORE_DEPEND}
+ >=gnustep-base/gnustep-make-2.6.0
+ gnutls? ( net-libs/gnutls )
+ icu? ( >=dev-libs/icu-50.0:= )
+ !libffi? ( dev-libs/ffcall
+ gnustep-base/gnustep-make[-native-exceptions] )
+ libffi? ( virtual/libffi )
+ >=dev-libs/libxml2-2.6
+ >=dev-libs/libxslt-1.1
+ >=dev-libs/gmp-4.1:=
+ >=sys-libs/zlib-1.2
+ zeroconf? ( net-dns/avahi )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${P}-no_compress_man.patch )
+
+src_configure() {
+ egnustep_env
+
+ local myconf
+ if use libffi ; then
+ myconf="--enable-libffi --disable-ffcall --with-ffi-include=$(pkg-config --variable=includedir libffi)"
+ else
+ myconf="--disable-libffi --enable-ffcall"
+ fi
+
+ myconf="$myconf $(use_enable gnutls tls)"
+ myconf="$myconf $(use_enable icu)"
+ myconf="$myconf $(use_enable zeroconf)"
+ myconf="$myconf --with-xml-prefix=${EPREFIX}/usr"
+ myconf="$myconf --with-gmp-include=${EPREFIX}/usr/include --with-gmp-library=${EPREFIX}/usr/lib"
+ myconf="$myconf --with-default-config=${EPREFIX}/etc/GNUstep/GNUstep.conf"
+
+ econf $myconf
+}
+
+src_install() {
+ # We need to set LD_LIBRARY_PATH because the doc generation program
+ # uses the gnustep-base libraries. Since egnustep_env "cleans the
+ # environment" including our LD_LIBRARY_PATH, we're left no choice
+ # but doing it like this.
+
+ egnustep_env
+ egnustep_install
+
+ if use doc ; then
+ export LD_LIBRARY_PATH="${S}/Source/obj:${LD_LIBRARY_PATH}"
+ egnustep_doc
+ fi
+ egnustep_install_config
+}