summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2018-08-13 19:59:34 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-08-15 21:53:29 +0200
commite6f3e4af3ddab2a5ea74dc7ea260897e94d7ad5f (patch)
treeb20cf8d6b80a299ef0af9d0e8c5c43269ae52b85 /app-misc/cdcat
parentapp-misc/cdcat: fix SRC_URI, HOMEPAGE (diff)
downloadgentoo-e6f3e4af3ddab2a5ea74dc7ea260897e94d7ad5f.tar.gz
gentoo-e6f3e4af3ddab2a5ea74dc7ea260897e94d7ad5f.tar.bz2
gentoo-e6f3e4af3ddab2a5ea74dc7ea260897e94d7ad5f.zip
app-misc/cdcat: EAPI7, improve ebuild
Closes: https://bugs.gentoo.org/663530
Diffstat (limited to 'app-misc/cdcat')
-rw-r--r--app-misc/cdcat/cdcat-0.3-r1.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/app-misc/cdcat/cdcat-0.3-r1.ebuild b/app-misc/cdcat/cdcat-0.3-r1.ebuild
new file mode 100644
index 000000000000..3649b8e2eacc
--- /dev/null
+++ b/app-misc/cdcat/cdcat-0.3-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Simple yet effective CD indexing program"
+# original src went away: SRC_URI="http://littledragon.home.ro/unix/${P}.tar.gz"
+SRC_URI="mirror://sourceforge/cdcatalog/${P}.tar.gz"
+HOMEPAGE="http://cdcatalog.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="virtual/cdrtools
+ !app-backup/cdbkup"
+
+src_prepare() {
+ default
+ # workaround install.sh ignoring --man_prefix
+ sed -i 's:^MAN_PREFIX:#:' install.sh || die
+
+ # fix path to cd index files to be FHS-compliant
+ sed -i 's:/mnt/ext/cd:/var/lib/cdcat:' src/cdcat.pl || die
+
+ # work around problem with isoinfo -di
+ sed -i 's:isoinfo -di:isoinfo -d -i:' src/cdcat.pl || die
+}
+
+src_install() {
+ # workaround install.sh ignoring --man_prefix
+ export MAN_PREFIX="${D}/usr/share/man"
+ dodir /usr/share/man/man1
+
+ # create index files path
+ dodir /var/lib/cdcat
+ keepdir /var/lib/cdcat
+ chgrp cdrom "${D}"/var/lib/cdcat
+ chmod g+ws,o+w "${D}"/var/lib/cdcat || die
+
+ # now use the included install.sh
+ ./install.sh --prefix="${D}/usr" \
+ --man_prefix="${D}/usr/share/man" || die "Install script failed."
+
+ insinto /etc
+ doins doc/cdcat.conf
+}