pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/bzr Add common settings for bzr plugins (soon to...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9ea8c8db5de5
branches:  trunk
changeset: 546278:9ea8c8db5de5
user:      epg <epg%pkgsrc.org@localhost>
date:      Tue Aug 26 01:17:33 2008 +0000

description:
Add common settings for bzr plugins (soon to be used by bzrtools, bzr-gtk, and
bzr-svn packages).

diffstat:

 devel/bzr/plugin.mk |  26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diffs (30 lines):

diff -r eb6e5ff65930 -r 9ea8c8db5de5 devel/bzr/plugin.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/bzr/plugin.mk       Tue Aug 26 01:17:33 2008 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: plugin.mk,v 1.1 2008/08/26 01:17:33 epg Exp $
+
+BZR_PLUGIN_NAME?=      ${PKGBASE:S/^bzr-//}
+BZR_PLUGIN_TEST?=      yes
+BZR_PLUGIN_TEST_DIR?=  ${WRKSRC}/build/lib/bzrlib/plugins
+
+DEPENDS+=              bzr>=1.6:../../devel/bzr
+
+# stolen from graphics/hicolor-icon-theme
+.include "../../mk/bsd.fast.prefs.mk"
+dirs!= ${GREP} '^@dirrm ${PYSITELIB}' ${.CURDIR}/../../devel/bzr/PLIST | \
+       ${CUT} -d ' ' -f 2 | ${SED} 's,\$${PYSITELIB},,'
+.for d in ${dirs}
+PRINT_PLIST_AWK+=      /^@dirrm ${PYSITELIB:S/\//\\\//g}${d:S/\//\\\//g}$$/ \
+                       { \
+                         sub(/${PYSITELIB:S/\//\\\//g}/, "$${PYSITELIB}"); \
+                         print "@comment in bzr: " $$0; next; }
+.endfor
+.undef dirs
+
+.if !defined(TEST_TARGET) && !empty(BZR_PLUGIN_TEST:M[Yy][Ee][Ss])
+# stolen from bzr-svn
+do-test:
+       BZR_PLUGIN_PATH=${BZR_PLUGIN_TEST_DIR} bzr selftest -v \
+         --starting-with=bzrlib.plugins.${BZR_PLUGIN_NAME}
+.endif



Home | Main Index | Thread Index | Old Index