diff options
author | nia <nia@pkgsrc.org> | 2020-12-15 09:32:23 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-12-15 09:32:23 +0000 |
commit | 3001f825ce715e4d7fb0788813221ca57bf19c10 (patch) | |
tree | c2a5892f1896fb555d7f6d68b7c71ca020abbf2a /graphics | |
parent | 6c0d9ff2ab8944f1b04170d936edcbbc4b33e37c (diff) | |
download | pkgsrc-3001f825ce715e4d7fb0788813221ca57bf19c10.tar.gz |
sane-airscan: Fix handling of config files.
- Use ${PKG_SYSCONFDIR} rather than ${PREFIX}/etc.
- Avoid unnecessary SUBST.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/sane-airscan/Makefile | 15 | ||||
-rw-r--r-- | graphics/sane-airscan/PLIST | 6 | ||||
-rw-r--r-- | graphics/sane-airscan/distinfo | 4 | ||||
-rw-r--r-- | graphics/sane-airscan/patches/patch-meson.build | 10 |
4 files changed, 17 insertions, 18 deletions
diff --git a/graphics/sane-airscan/Makefile b/graphics/sane-airscan/Makefile index 39e9a435613..f3a34870922 100644 --- a/graphics/sane-airscan/Makefile +++ b/graphics/sane-airscan/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.2 2020/12/14 09:11:02 nia Exp $ +# $NetBSD: Makefile,v 1.3 2020/12/15 09:32:23 nia Exp $ GITHUB_PROJECT= sane-airscan GITHUB_TAG= 0.99.21 DISTNAME= sane-airscan-0.99.21 +PKGREVISION= 1 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_GITHUB:=alexpevzner/} @@ -14,14 +15,10 @@ LICENSE= gnu-gpl-v2 USE_LANGUAGES= c c++ USE_TOOLS+= pkg-config -SUBST_CLASSES+= prefix -SUBST_STAGE.prefix= pre-configure -SUBST_MESSAGE.prefix= Fix config install path -SUBST_FILES.prefix= meson.build -SUBST_VARS.prefix= PREFIX - -EGDIR= ${PREFIX}/share/examples/ -CONF_FILES= ${EGDIR}/airscan.conf ${PREFIX}/etc/sane.d/airscan.conf +EGDIR= ${PREFIX}/share/examples/sane.d +MAKE_DIRS+= ${PKG_SYSCONFDIR}/sane.d/dll.d +CONF_FILES= ${EGDIR}/dll.d/airscan ${PKG_SYSCONFDIR}/sane.d/dll.d/airscan +CONF_FILES+= ${EGDIR}/airscan.conf ${PKG_SYSCONFDIR}/sane.d/airscan.conf PYTHON_FOR_BUILD_ONLY= tool diff --git a/graphics/sane-airscan/PLIST b/graphics/sane-airscan/PLIST index d398f782dd9..2cf3788eaab 100644 --- a/graphics/sane-airscan/PLIST +++ b/graphics/sane-airscan/PLIST @@ -1,8 +1,8 @@ -@comment $NetBSD: PLIST,v 1.1 2020/12/09 12:05:58 ryoon Exp $ +@comment $NetBSD: PLIST,v 1.2 2020/12/15 09:32:23 nia Exp $ bin/airscan-discover -etc/sane.d/dll.d/airscan lib/sane/libsane-airscan.so lib/sane/libsane-airscan.so.1 man/man1/airscan-discover.1 man/man5/sane-airscan.5 -share/examples/airscan.conf +share/examples/sane.d/airscan.conf +share/examples/sane.d/dll.d/airscan diff --git a/graphics/sane-airscan/distinfo b/graphics/sane-airscan/distinfo index c883b7fd127..d154666fc29 100644 --- a/graphics/sane-airscan/distinfo +++ b/graphics/sane-airscan/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.1 2020/12/09 12:05:58 ryoon Exp $ +$NetBSD: distinfo,v 1.2 2020/12/15 09:32:23 nia Exp $ SHA1 (sane-airscan-0.99.21.tar.gz) = 679a0be46117b053c2479c57faaec358df2e742a RMD160 (sane-airscan-0.99.21.tar.gz) = cf2124e9bb4bc777ca56cd104ce621090d8a2fcc @@ -6,4 +6,4 @@ SHA512 (sane-airscan-0.99.21.tar.gz) = ab713995cfba6df4f627cf4bdf16222ddab64010c Size (sane-airscan-0.99.21.tar.gz) = 191255 bytes SHA1 (patch-airscan-netif.c) = 3b06cf883514c8804e2854a5e00ccd9fae957b7c SHA1 (patch-airscan-os.c) = 46e65e141d97356d2e6c7b16a4e78f53a83e9ec8 -SHA1 (patch-meson.build) = 0a8ff042c8baaa7be486d923d9ed67bd8edf4443 +SHA1 (patch-meson.build) = 3348d065567db299b2cd8e2139b382ddbc3f53db diff --git a/graphics/sane-airscan/patches/patch-meson.build b/graphics/sane-airscan/patches/patch-meson.build index 787df4cf1c4..4e8ca8c0e06 100644 --- a/graphics/sane-airscan/patches/patch-meson.build +++ b/graphics/sane-airscan/patches/patch-meson.build @@ -1,15 +1,17 @@ -$NetBSD: patch-meson.build,v 1.1 2020/12/09 12:05:58 ryoon Exp $ +$NetBSD: patch-meson.build,v 1.2 2020/12/15 09:32:23 nia Exp $ * Install configuration file under share/examples for pkgsrc. --- meson.build.orig 2020-11-23 19:47:02.000000000 +0000 +++ meson.build -@@ -91,7 +91,7 @@ endforeach +@@ -91,8 +91,8 @@ endforeach install_man('sane-airscan.5') install_man('airscan-discover.1') install_data('airscan.conf', - install_dir: join_paths(get_option('sysconfdir'), 'sane.d') -+ install_dir: '@PREFIX@/share/examples' ++ install_dir: join_paths(get_option('prefix'), 'share', 'examples', 'sane.d') ) install_data(dll_file, - install_dir: join_paths(get_option('sysconfdir'), 'sane.d', 'dll.d') +- install_dir: join_paths(get_option('sysconfdir'), 'sane.d', 'dll.d') ++ install_dir: join_paths(get_option('prefix'), 'share', 'examples', 'sane.d', 'dll.d') + ) |