aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/barbecue
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2012-10-29 00:03:54 +0800
committerthierry <thierry@FreeBSD.org>2012-10-29 00:03:54 +0800
commitd8a77d92d0bde5c67ee13edc18a23eae0f80c77d (patch)
tree43ad94c957a7a3f4edee18492f2051643a4dc54a /graphics/barbecue
parent3a82f020eded7b2f3104c7259016ed6f21ee078b (diff)
downloadfreebsd-ports-gnome-d8a77d92d0bde5c67ee13edc18a23eae0f80c77d.tar.gz
freebsd-ports-gnome-d8a77d92d0bde5c67ee13edc18a23eae0f80c77d.tar.zst
freebsd-ports-gnome-d8a77d92d0bde5c67ee13edc18a23eae0f80c77d.zip
- Update to 1.5-beta1;
- Optionify; - Adding support for Tomcat6 and Tomcat7. + Release maintainership. PR: ports/173015 Submitted by: nemysis (at) gmx.ch Feature safe: yes
Diffstat (limited to 'graphics/barbecue')
-rw-r--r--graphics/barbecue/Makefile77
-rw-r--r--graphics/barbecue/distinfo4
-rw-r--r--graphics/barbecue/pkg-plist91
3 files changed, 141 insertions, 31 deletions
diff --git a/graphics/barbecue/Makefile b/graphics/barbecue/Makefile
index 9edf0b1ef7e6..42a4325da6cb 100644
--- a/graphics/barbecue/Makefile
+++ b/graphics/barbecue/Makefile
@@ -6,13 +6,15 @@
#
PORTNAME= barbecue
-PORTVERSION= 1.0.6d
-PORTREVISION= 4
+DISTVERSION= 1.5-beta1
CATEGORIES= graphics print java
-MASTER_SITES= SF
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}/
+DIST_SUBDIR= java
-MAINTAINER= thierry@FreeBSD.org
-COMMENT= A Java barcode generator
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Java barcode generator
+
+LICENSE= BSD
RUN_DEPENDS= ${JAVALIBDIR}/jdom.jar:${PORTSDIR}/java/jdom
@@ -20,40 +22,57 @@ USE_JAVA= yes
JAVA_VERSION= 1.5+
NO_BUILD= yes
-JARFILES= ${PORTNAME}-${PORTVERSION}.jar
-PLIST_FILES+= %%JAVAJARDIR%%/${JARFILES:S|-${PORTVERSION}||} \
- %%JAVAJARDIR%%/LICENSE.barbecue.txt
+JARFILES= ${PORTNAME}-${DISTVERSION}.jar
-.if defined(WITH_TOMCAT55)
-RUN_DEPENDS+= ${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55
-JAKARTA_HOME= ${LOCALBASE}/tomcat5.5
-PLIST_FILES+= ${JAKARTA_HOME:S|^${LOCALBASE}/||}/webapps/${PORTNAME}.war
-.endif
+TOMCATDIR= ${PREFIX}/${TOMCATVER}
+APPHOME= ${LOCALBASE}/${TOMCATVER}
+WEBAPPDIR= ${TOMCATDIR}/webapps
PORTDOCS= *
+PORTEXAMPLES= *
+
+PLIST_SUB= TOMCATDIR=${TOMCATDIR:S|^${PREFIX}/||}
-pre-everything::
-.if !defined(WITH_TOMCAT55)
- @${ECHO_MSG} '*********************************************************'
- @${ECHO_MSG} '* To use Barbecue as a servlet, define WITH_TOMCAT55. *'
- @${ECHO_MSG} '*********************************************************'
+OPTIONS_SINGLE= AS
+OPTIONS_SINGLE_AS= TOMCAT6 TOMCAT7
+OPTIONS_DEFAULT= TOMCAT6
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MTOMCAT6}
+TOMCATVER= apache-tomcat-6.0
+BUILD_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
+RUN_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
+.endif
+
+.if ${PORT_OPTIONS:MTOMCAT7}
+TOMCATVER= apache-tomcat-7.0
+BUILD_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
+RUN_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
.endif
post-extract:
- ${MV} ${WRKSRC}/${JARFILES} ${WRKSRC}/${JARFILES:S|-${PORTVERSION}||}
+ ${MV} ${WRKSRC}/${JARFILES} ${WRKSRC}/${JARFILES:S|-${DISTVERSION}||}
+ ${MKDIR} ${WRKDIR}/${PORTNAME}
+ ${TAR} xf ${WRKSRC}/${PORTNAME}.war -C ${WRKDIR}/${PORTNAME}
do-install:
- ${INSTALL_DATA} ${JARFILES:S|-${PORTVERSION}||:S|^|${WRKSRC}/|} ${JAVAJARDIR}
- ${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${JAVAJARDIR}/LICENSE.barbecue.txt
-.if defined(WITH_TOMCAT55)
- ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.war ${JAKARTA_HOME}/webapps
+ ${INSTALL_DATA} ${JARFILES:S|-${DISTVERSION}||:S|^|${WRKSRC}/|} ${JAVAJARDIR}
+
+.if ${PORT_OPTIONS:MTOMCAT6} || ${PORT_OPTIONS:MTOMCAT7}
+ ${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} ${WEBAPPDIR}/${PORTNAME}
+ (cd ${WRKDIR}/${PORTNAME} && ${COPYTREE_SHARE} \* ${WEBAPPDIR}/${PORTNAME})
+ ${TOUCH} ${WEBAPPDIR}/${PORTNAME}/WEB-INF/classes/net/sourceforge/barbecue/postnet/.empty
.endif
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
- @${CP} -R ${WRKSRC}/docs/* ${DOCSDIR}
- @${CP} -R ${WRKSRC}/examples ${DOCSDIR}
- @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
+ (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR})
+.endif
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+ (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
.include <bsd.port.mk>
diff --git a/graphics/barbecue/distinfo b/graphics/barbecue/distinfo
index c7e70eaf8ee9..2deffc1d1d62 100644
--- a/graphics/barbecue/distinfo
+++ b/graphics/barbecue/distinfo
@@ -1,2 +1,2 @@
-SHA256 (barbecue-1.0.6d.tar.gz) = 48868ecde3570b9c9c62684199d8a5d1c4954ef78f16ad9d740756bfbb2189ae
-SIZE (barbecue-1.0.6d.tar.gz) = 421847
+SHA256 (java/barbecue-1.5-beta1.tar.gz) = 500421de383b2f0867fe039f22077c45850e7fe581608fb25bd3899b4a870a17
+SIZE (java/barbecue-1.5-beta1.tar.gz) = 641262
diff --git a/graphics/barbecue/pkg-plist b/graphics/barbecue/pkg-plist
new file mode 100644
index 000000000000..a808dbc14dcb
--- /dev/null
+++ b/graphics/barbecue/pkg-plist
@@ -0,0 +1,91 @@
+%%TOMCATDIR%%/webapps/barbecue/META-INF/MANIFEST.MF
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/LICENSE.txt
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/META-INF/MANIFEST.MF
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/Barcode.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/BarcodeException.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/BarcodeFactory.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/BarcodeImageHandler.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/BarcodePortlet.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/BarcodeServlet.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/BlankModule.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/CompositeModule.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/Main.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/Module.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/Modulo10.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/SeparatorModule.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/env/DefaultEnvironment.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/env/Environment.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/env/EnvironmentFactory.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/env/HeadlessEnvironment.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/env/NonAWTEnvironment.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/formatter/BarcodeFormatter.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/formatter/FormattingException.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/formatter/SVGFormatter.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/LinearBarcode.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/codabar/CodabarBarcode.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/codabar/ModuleFactory.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/code128/Accumulator.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/code128/CharBuffer.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/code128/Code128Barcode.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/code128/CodeChangeModule.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/code128/ModuleFactory.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/code128/ShiftModule.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/code39/Code39Barcode.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/code39/ModuleFactory.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/ean/BooklandBarcode.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/ean/EAN13Barcode.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/ean/EAN13ModuleFactory.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/ean/UCCEAN128Barcode.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/postnet/ModuleFactory.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/postnet/PostNetBarcode.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/postnet/PostNetModule.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/twoOfFive/Int2of5Barcode.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/twoOfFive/Int2of5ModuleFactory.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/twoOfFive/Std2of5Barcode.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/twoOfFive/Std2of5ModuleFactory.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/upc/ModuleFactory.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/upc/UPCABarcode.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/output/AbstractOutput.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/output/CenteredLabelLayout.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/output/DefaultLabelLayout.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/output/EPSOutput.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/output/GraphicsOutput.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/output/LabelLayout.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/output/LabelLayoutFactory.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/output/MarginLabelLayout.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/output/Output.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/output/OutputException.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/output/SVGOutput.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/output/SizingOutput.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/postnet/.empty
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/twod/pdf417/PDF417Barcode.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/twod/pdf417/PDF417Data.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/twod/pdf417/PDF417Module.class
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/lib/jdom.jar
+%%TOMCATDIR%%/webapps/barbecue/WEB-INF/web.xml
+share/java/classes/barbecue.jar
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/lib
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/twod/pdf417
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/twod
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/postnet
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/output
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/upc
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/twoOfFive
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/postnet
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/ean
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/code39
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/code128
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear/codabar
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/linear
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/formatter
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue/env
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge/barbecue
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net/sourceforge
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/net
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes/META-INF
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF/classes
+@dirrm %%TOMCATDIR%%/webapps/barbecue/WEB-INF
+@dirrm %%TOMCATDIR%%/webapps/barbecue/META-INF
+@dirrm %%TOMCATDIR%%/webapps/barbecue
+@dirrmtry %%TOMCATDIR%%/webapps
+@dirrmtry %%TOMCATDIR%%