summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Oehme <bureau@jonglieren-jena.de>2019-02-17 16:10:25 +0100
committerLars Wendler <polynomial-c@gentoo.org>2019-02-17 16:43:22 +0100
commit54d456e8eadeb7a6f79431fe541a8d15a694d421 (patch)
treee52abf58281a97809df58c7d6a35ba821908b739 /app-i18n/man-pages-de/man-pages-de-2.9.ebuild
parentmedia-tv/kodi: 18.1 version bump (diff)
downloadgentoo-54d456e8eadeb7a6f79431fe541a8d15a694d421.tar.gz
gentoo-54d456e8eadeb7a6f79431fe541a8d15a694d421.tar.bz2
gentoo-54d456e8eadeb7a6f79431fe541a8d15a694d421.zip
app-i18n/man-pages-de: Bump to version 2.9
Closes: https://bugs.gentoo.org/671100 Package-Manager: Portage-2.3.60, Repoman-2.3.12 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-i18n/man-pages-de/man-pages-de-2.9.ebuild')
-rw-r--r--app-i18n/man-pages-de/man-pages-de-2.9.ebuild66
1 files changed, 66 insertions, 0 deletions
diff --git a/app-i18n/man-pages-de/man-pages-de-2.9.ebuild b/app-i18n/man-pages-de/man-pages-de-2.9.ebuild
new file mode 100644
index 000000000000..f12feaf49d11
--- /dev/null
+++ b/app-i18n/man-pages-de/man-pages-de-2.9.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+MY_P="${PN/-/}-v${PV}"
+
+DESCRIPTION="A somewhat comprehensive collection of Linux german man page translations"
+HOMEPAGE="https://salsa.debian.org/manpages-de-team/manpages-de"
+SRC_URI="https://salsa.debian.org/manpages-de-team/manpages-de/-/archive/v${PV}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-3+ man-pages GPL-2+ GPL-2 BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+RDEPEND="virtual/man"
+DEPEND="app-text/po4a"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ default
+
+ # sys-apps/shadow has it's own translated man-page for this
+ rm "${S}/upstream/primary/man1/groups.1" || die
+ rm "${S}/po/primary/man1/groups.1.po" || die
+}
+
+src_prepare() {
+ default
+
+ # Use the same compression as every other manpage
+ local PORTAGE_COMPRESS_LOCAL=${PORTAGE_COMPRESS-bzip2}
+ local PORTAGE_COMPRESS_FLAGS_LOCAL=${PORTAGE_COMPRESS_FLAGS}
+ if [[ ${PORTAGE_COMPRESS_FLAGS+set} != "set" ]] ; then
+ case ${PORTAGE_COMPRESS_LOCAL} in
+ bzip2|gzip) PORTAGE_COMPRESS_FLAGS_LOCAL="-9"
+ ;;
+ esac
+ fi
+ sed -i -e "s/gzip --best/${PORTAGE_COMPRESS_LOCAL} ${PORTAGE_COMPRESS_FLAGS_LOCAL}/"\
+ po/Makefile.in || die
+ # Fix source files for symlinks
+ case ${PORTAGE_COMPRESS_LOCAL} in
+ bzip2) for LINKSOURCE in "${S}/upstream/"*"/links.txt"
+ do
+ sed -i -e "s/\.gz/\.bz2/g" "$LINKSOURCE" || die
+ done
+ ;;
+ gzip) # pass
+ ;;
+ *) ewarn "Unexpected compression command ${PORTAGE_COMPRESS} found, symlinks will not work."
+ ;;
+ esac
+ eautoreconf
+}
+
+src_compile() { :; }
+
+src_install() {
+ emake mandir="${ED}"/usr/share/man install
+ dodoc CHANGES.md README.md
+}