aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwen <wen@FreeBSD.org>2012-10-25 11:47:09 +0800
committerwen <wen@FreeBSD.org>2012-10-25 11:47:09 +0800
commit6ace8f15caacd3bd73b4fb6616be99c45d9f1e56 (patch)
treef8302e29653381de1558c8ac6f3d5f4d0dc45171
parent81f8a36c43ef2597717478e7659fa54cae68b928 (diff)
downloadfreebsd-ports-gnome-6ace8f15caacd3bd73b4fb6616be99c45d9f1e56.tar.gz
freebsd-ports-gnome-6ace8f15caacd3bd73b4fb6616be99c45d9f1e56.tar.zst
freebsd-ports-gnome-6ace8f15caacd3bd73b4fb6616be99c45d9f1e56.zip
Package::Variant allows you to build packages that return different
variations depending on what parameters are given. Users of your package will receive a subroutine able to take parameters and return the name of a suitable variant package. The implmenetation does not care about what kind of package it builds. WWW: http://search.cpan.org/dist/Package-Variant/ Feature safe: yes
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-Package-Variant/Makefile23
-rw-r--r--devel/p5-Package-Variant/distinfo2
-rw-r--r--devel/p5-Package-Variant/pkg-descr8
-rw-r--r--devel/p5-Package-Variant/pkg-plist4
5 files changed, 38 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 2b151c90929d..e4f28e4cf0a9 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2367,6 +2367,7 @@
SUBDIR += p5-Package-Generator
SUBDIR += p5-Package-Stash
SUBDIR += p5-Package-Stash-XS
+ SUBDIR += p5-Package-Variant
SUBDIR += p5-PadWalker
SUBDIR += p5-Parallel-ForkManager
SUBDIR += p5-Parallel-Iterator
diff --git a/devel/p5-Package-Variant/Makefile b/devel/p5-Package-Variant/Makefile
new file mode 100644
index 000000000000..d51d359fa0df
--- /dev/null
+++ b/devel/p5-Package-Variant/Makefile
@@ -0,0 +1,23 @@
+# Created by: Wen Heping <wen@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= Package-Variant
+PORTVERSION= 1.001002
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= wen@FreeBSD.org
+COMMENT= Parameterizable packages
+
+LICENSE= ART10 GPLv1
+LICENSE_COMB= dual
+
+BUILD_DEPENDS= p5-Import-Into>=0:${PORTSDIR}/devel/p5-Import-Into
+RUN_DEPENDS= p5-Import-Into>=0:${PORTSDIR}/devel/p5-Import-Into
+
+PERL_CONFIGURE= yes
+
+MAN3= Package::Variant.3
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Package-Variant/distinfo b/devel/p5-Package-Variant/distinfo
new file mode 100644
index 000000000000..b527b3f42cdd
--- /dev/null
+++ b/devel/p5-Package-Variant/distinfo
@@ -0,0 +1,2 @@
+SHA256 (Package-Variant-1.001002.tar.gz) = 594f21f721884a90582c9132552598ff8adcccae15ad0a971497bdd3f4ba7b66
+SIZE (Package-Variant-1.001002.tar.gz) = 8069
diff --git a/devel/p5-Package-Variant/pkg-descr b/devel/p5-Package-Variant/pkg-descr
new file mode 100644
index 000000000000..7ceff2930458
--- /dev/null
+++ b/devel/p5-Package-Variant/pkg-descr
@@ -0,0 +1,8 @@
+Package::Variant allows you to build packages that return different
+variations depending on what parameters are given.
+
+Users of your package will receive a subroutine able to take parameters
+and return the name of a suitable variant package. The implmenetation
+does not care about what kind of package it builds.
+
+WWW: http://search.cpan.org/dist/Package-Variant/
diff --git a/devel/p5-Package-Variant/pkg-plist b/devel/p5-Package-Variant/pkg-plist
new file mode 100644
index 000000000000..a6b477f79b3d
--- /dev/null
+++ b/devel/p5-Package-Variant/pkg-plist
@@ -0,0 +1,4 @@
+%%SITE_PERL%%/Package/Variant.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Package-Variant/.packlist
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Package-Variant
+@dirrmtry %%SITE_PERL%%/Package