From 286e593c275e643ee90afb7aedeaa01181f9057e Mon Sep 17 00:00:00 2001 From: drochner Date: Fri, 22 Aug 2003 18:33:05 +0000 Subject: install cover templates too, and set default search path accordingly --- audio/disc-cover/Makefile | 10 ++++++++-- audio/disc-cover/PLIST | 12 +++++++++++- audio/disc-cover/distinfo | 3 ++- audio/disc-cover/patches/patch-aa | 13 +++++++++++++ 4 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 audio/disc-cover/patches/patch-aa (limited to 'audio/disc-cover') diff --git a/audio/disc-cover/Makefile b/audio/disc-cover/Makefile index 34d63009fa3..c1179ee91e4 100644 --- a/audio/disc-cover/Makefile +++ b/audio/disc-cover/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2003/07/25 16:42:23 drochner Exp $ +# $NetBSD: Makefile,v 1.11 2003/08/22 18:33:05 drochner Exp $ # DISTNAME= disc-cover-1.5.2 @@ -14,13 +14,19 @@ DEPENDS+= p5-Audio-CD-0.05:../../audio/p5-Audio-CD USE_BUILDLINK2= YES REPLACE_PERL= disc-cover +DCTMPL= ${PREFIX}/share/disc-cover/templates + do-build: cd ${WRKSRC} && ${BUILDLINK_PREFIX.perl}/bin/pod2man \ disc-cover > disc-cover.1 + ${SED} "s|@DCTMPL@|${DCTMPL}|g" <${WRKSRC}/disc-cover \ + >${WRKDIR}/disc-cover do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/disc-cover ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/disc-cover ${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/disc-cover.1 ${PREFIX}/man/man1 + ${INSTALL_DATA_DIR} ${DCTMPL} + ${INSTALL_DATA} ${WRKSRC}/templates/* ${DCTMPL} .include "../../lang/perl5/buildlink2.mk" .include "../../mk/bsd.pkg.mk" diff --git a/audio/disc-cover/PLIST b/audio/disc-cover/PLIST index dd8ce0acd21..fa062fbd71b 100644 --- a/audio/disc-cover/PLIST +++ b/audio/disc-cover/PLIST @@ -1,3 +1,13 @@ -@comment $NetBSD: PLIST,v 1.2 2003/01/18 09:34:26 jmmv Exp $ +@comment $NetBSD: PLIST,v 1.3 2003/08/22 18:33:05 drochner Exp $ bin/disc-cover man/man1/disc-cover.1 +share/disc-cover/templates/jewel +share/disc-cover/templates/letter-slim +share/disc-cover/templates/sleeve +share/disc-cover/templates/slim +share/disc-cover/templates/tape +share/disc-cover/templates/tdk-slim +share/disc-cover/templates/tevion-slim +share/disc-cover/templates/x-slim +@dirrm share/disc-cover/templates +@dirrm share/disc-cover diff --git a/audio/disc-cover/distinfo b/audio/disc-cover/distinfo index 2b98200fd59..e35fc726915 100644 --- a/audio/disc-cover/distinfo +++ b/audio/disc-cover/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.8 2003/07/25 16:42:23 drochner Exp $ +$NetBSD: distinfo,v 1.9 2003/08/22 18:33:05 drochner Exp $ SHA1 (disc-cover-1.5.2.tar.gz) = b1fcc7e5bf1751202729db623f37c78be05356fc Size (disc-cover-1.5.2.tar.gz) = 44834 bytes +SHA1 (patch-aa) = 8dcbf92c90782cd9625ce45048a018f9fcd41ad7 diff --git a/audio/disc-cover/patches/patch-aa b/audio/disc-cover/patches/patch-aa new file mode 100644 index 00000000000..4f376d44f96 --- /dev/null +++ b/audio/disc-cover/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.3 2003/08/22 18:33:06 drochner Exp $ + +--- disc-cover.orig 2003-08-22 19:14:38.000000000 +0200 ++++ disc-cover 2003-08-22 19:17:41.000000000 +0200 +@@ -38,7 +38,7 @@ + my ($config_homedir) = ""; + $config_homedir = "$ENV{HOME}" if (defined $ENV{HOME}); + my ($config_tmp_dir) = '/tmp'; +-my (@config_template_dirs) = ('/usr/share/disc-cover/templates','/usr/lib/disc-cover/templates','templates'); ++my (@config_template_dirs) = ('@DCTMPL@', 'templates'); + my ($config_output_format) = 'ps'; + my ($config_device) = "/dev/cdrom"; + my ($config_cddb_cache_directory) = "$config_homedir/.cddb"; -- cgit v1.2.3