summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Houser <chouser@gentoo.org>2002-02-05 02:40:57 +0000
committerChris Houser <chouser@gentoo.org>2002-02-05 02:40:57 +0000
commit47bc3e8b75ff28aa5e788d4850f94e8397ad8549 (patch)
tree1b3085faa8725d81f98ccc0122ae46c6667ac3f1 /app-cdr/cdcat
parentportage-1.8.9_pre2 which fixes bug in the unmerging of already installed (diff)
downloadgentoo-2-47bc3e8b75ff28aa5e788d4850f94e8397ad8549.tar.gz
gentoo-2-47bc3e8b75ff28aa5e788d4850f94e8397ad8549.tar.bz2
gentoo-2-47bc3e8b75ff28aa5e788d4850f94e8397ad8549.zip
Adding cdcat. Thanks Ilian Zarov.
http://bugs.gentoo.org/show_bug.cgi?id=496
Diffstat (limited to 'app-cdr/cdcat')
-rw-r--r--app-cdr/cdcat/cdcat-0.2.ebuild44
-rw-r--r--app-cdr/cdcat/files/digest-cdcat-0.21
2 files changed, 45 insertions, 0 deletions
diff --git a/app-cdr/cdcat/cdcat-0.2.ebuild b/app-cdr/cdcat/cdcat-0.2.ebuild
new file mode 100644
index 000000000000..632e6b36f3e5
--- /dev/null
+++ b/app-cdr/cdcat/cdcat-0.2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Maintainer: Chris Houser <chouser@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdcat/cdcat-0.2.ebuild,v 1.1 2002/02/05 02:40:57 chouser Exp $
+
+S=${WORKDIR}/${P}
+DESCRIPTION="CD Catalog is a simple yet effective CD indexing program."
+SRC_URI="http://www.littledragon.f2s.com/unix/cdcat/cdcat-0.2.tar.gz"
+HOMEPAGE="http://www.littledragon.f2s.com/unix/"
+
+DEPEND=">=sys-apps/sed-3.02.80
+ >=sys-apps/grep-2.4.2
+ >=sys-apps/findutils-4.1
+ >=app-cdr/cdrtools-1.11"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # workaround install.sh ignoring --man_prefix
+ t="install.sh"
+ cp $t $t.orig || die "Patch failed for $t"
+ sed 's:^MAN_PREFIX:#\1:' $t.orig > $t
+
+ # fix path to cd index files to be FHS-compliant
+ t="src/cdcat.pl"
+ cp $t $t.orig || die "Patch failed for $t"
+ sed 's:/mnt/ext/cd:/var/lib/cdcat:' $t.orig > $t
+}
+
+src_install() {
+ # workaround install.sh ignoring --man_prefix
+ export MAN_PREFIX=${D}/usr/share/man
+ mkdir -p $MAN_PREFIX/man1
+
+ # create index files path
+ mkdir -p ${D}/var/lib/cdcat
+ chgrp cdrom ${D}/var/lib/cdcat
+ chmod g+ws,o+w ${D}/var/lib/cdcat
+
+ # now use the included install.sh
+ ./install.sh --prefix=${D}/usr \
+ --man_prefix=${D}/usr/share/man || die "Install script failed."
+}
diff --git a/app-cdr/cdcat/files/digest-cdcat-0.2 b/app-cdr/cdcat/files/digest-cdcat-0.2
new file mode 100644
index 000000000000..1e64085e2a9f
--- /dev/null
+++ b/app-cdr/cdcat/files/digest-cdcat-0.2
@@ -0,0 +1 @@
+MD5 3a89ec6931ab0eba04cbe8f0031b6462 cdcat-0.2.tar.gz 8192