diff options
author | epg <epg> | 2008-08-26 01:17:33 +0000 |
---|---|---|
committer | epg <epg> | 2008-08-26 01:17:33 +0000 |
commit | 68491fe9e3230a58e589ac59dc126adb463293d4 (patch) | |
tree | 24849cdbae588145e50fd969feb1ec31642b0a3c /devel/bzr | |
parent | fb2440fe9681bd91bf241d77e4cb99c7648ff556 (diff) | |
download | pkgsrc-68491fe9e3230a58e589ac59dc126adb463293d4.tar.gz |
Add common settings for bzr plugins (soon to be used by bzrtools, bzr-gtk, and
bzr-svn packages).
Diffstat (limited to 'devel/bzr')
-rw-r--r-- | devel/bzr/plugin.mk | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/devel/bzr/plugin.mk b/devel/bzr/plugin.mk new file mode 100644 index 00000000000..02fb427fb7d --- /dev/null +++ b/devel/bzr/plugin.mk @@ -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 |