pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/disc-cover install cover templates too, and set ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8c1c1f212108
branches:  trunk
changeset: 460150:8c1c1f212108
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Fri Aug 22 18:33:05 2003 +0000

description:
install cover templates too, and set default search path accordingly

diffstat:

 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(-)

diffs (75 lines):

diff -r 130f97bd62ef -r 8c1c1f212108 audio/disc-cover/Makefile
--- a/audio/disc-cover/Makefile Fri Aug 22 18:17:03 2003 +0000
+++ b/audio/disc-cover/Makefile Fri Aug 22 18:33:05 2003 +0000
@@ -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 @@
 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 -r 130f97bd62ef -r 8c1c1f212108 audio/disc-cover/PLIST
--- a/audio/disc-cover/PLIST    Fri Aug 22 18:17:03 2003 +0000
+++ b/audio/disc-cover/PLIST    Fri Aug 22 18:33:05 2003 +0000
@@ -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 -r 130f97bd62ef -r 8c1c1f212108 audio/disc-cover/distinfo
--- a/audio/disc-cover/distinfo Fri Aug 22 18:17:03 2003 +0000
+++ b/audio/disc-cover/distinfo Fri Aug 22 18:33:05 2003 +0000
@@ -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 -r 130f97bd62ef -r 8c1c1f212108 audio/disc-cover/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/disc-cover/patches/patch-aa Fri Aug 22 18:33:05 2003 +0000
@@ -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";



Home | Main Index | Thread Index | Old Index