pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
ddgr: include examples
Module Name: pkgsrc-wip
Committed By: pin <voidpin%protonmail.com@localhost>
Pushed By: pin
Date: Tue Feb 9 22:35:22 2021 +0100
Changeset: 71b98603865adbed6dd5f33f3b70b31bdb100e76
Modified Files:
ddgr/Makefile
ddgr/PLIST
Log Message:
ddgr: include examples
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=71b98603865adbed6dd5f33f3b70b31bdb100e76
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
ddgr/Makefile | 14 ++++++++++++--
ddgr/PLIST | 1 +
2 files changed, 13 insertions(+), 2 deletions(-)
diffs:
diff --git a/ddgr/Makefile b/ddgr/Makefile
index f2180c3f2d..9803e46779 100644
--- a/ddgr/Makefile
+++ b/ddgr/Makefile
@@ -12,13 +12,16 @@ LICENSE= gnu-gpl-v3
USE_LANGUAGES= # none
-INSTALLATION_DIRS= ${PKGMANDIR}/man1
+INSTALLATION_DIRS= ${PKGMANDIR}/man1 ${PREFIX}/share/examples
PYTHON_VERSIONS_INCOMPATIBLE= 27
REPLACE_PYTHON+= ddgr
REPLACE_PYTHON+= setup.py
+#PKG_SYSCONFSUBDIR= ddgr
+EGDIR= ${PREFIX}/share/examples/ddgr
+
SUBST_CLASSES+= prefix
SUBST_MESSAGE.prefix= Fixing paths.
SUBST_STAGE.prefix= pre-configure
@@ -27,7 +30,14 @@ SUBST_SED.prefix+= -e 's,/usr/local,${PREFIX},g'
SUBST_SED.prefix+= -e 's,share/man,${PKGMANDIR},g'
post-install:
- ${INSTALL_MAN} ${WRKSRC}/ddgr.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ddgr.1
+ ${INSTALL_MAN} ${WRKSRC}/ddgr.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ddgr.1
+ ${INSTALL_DATA} ${WRKSRC}/auto-completion/bash/ddgr-completion.bash \
+ ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/auto-completion/fish/ddgr.fish \
+ ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/auto-completion/zsh/_ddgr \
+ ${DESTDIR}${EGDIR}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/ddgr/PLIST b/ddgr/PLIST
index e355794ea4..9375c7cb9b 100644
--- a/ddgr/PLIST
+++ b/ddgr/PLIST
@@ -9,3 +9,4 @@ ${PYSITELIB}/ddgr.py
${PYSITELIB}/ddgr.pyc
${PYSITELIB}/ddgr.pyo
man/man1/ddgr.1
+share/examples/ddgr
Home |
Main Index |
Thread Index |
Old Index