sys-apps/ibm-powerpc-utils: Fix docdir, install Changelog
authorJeroen Roovers <jer@gentoo.org>
Sat, 1 Dec 2018 12:30:25 +0000 (13:30 +0100)
committerJeroen Roovers <jer@gentoo.org>
Sat, 1 Dec 2018 12:48:43 +0000 (13:48 +0100)
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
sys-apps/ibm-powerpc-utils/files/ibm-powerpc-utils-1.3.5-docdir.patch [new file with mode: 0644]
sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.3.5-r1.ebuild [new file with mode: 0644]

diff --git a/sys-apps/ibm-powerpc-utils/files/ibm-powerpc-utils-1.3.5-docdir.patch b/sys-apps/ibm-powerpc-utils/files/ibm-powerpc-utils-1.3.5-docdir.patch
new file mode 100644 (file)
index 0000000..52fd544
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -4,8 +4,8 @@
+ sbin_PROGRAMS =
+ EXTRA_DIST =
+-docdir = $(datadir)/doc/packages/@PACKAGE@
+-doc_DATA = README COPYING
++docdir ?= $(datadir)/doc/packages/@PACKAGE@
++doc_DATA = Changelog README
+ bin_SCRIPTS = scripts/amsstat
diff --git a/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.3.5-r1.ebuild b/sys-apps/ibm-powerpc-utils/ibm-powerpc-utils-1.3.5-r1.ebuild
new file mode 100644 (file)
index 0000000..6d7d066
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils
+
+DESCRIPTION="Utilities for the maintainance of the IBM and Apple PowerPC platforms"
+HOMEPAGE="https://github.com/ibm-power-utilities/powerpc-utils"
+SRC_URI="https://github.com/ibm-power-utilities/${PN//ibm-}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+IUSE="+rtas"
+
+S="${WORKDIR}/${P//ibm-}"
+
+SLOT="0"
+LICENSE="IBM"
+KEYWORDS="~ppc ~ppc64"
+
+DEPEND="
+       sys-devel/bc
+"
+RDEPEND="
+       !sys-apps/powerpc-utils
+       ${DEPEND}
+       rtas? ( >=sys-libs/librtas-2.0.2 )
+"
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.3.5-docdir.patch
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       econf $(use_with rtas librtas)
+}