diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2002-11-23 20:10:43 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2002-11-23 20:10:43 +0000 |
commit | 066ca66c430496759d47f36d468af88b718f5b97 (patch) | |
tree | 9127581e5b425fffc98de720644e415351cd9064 | |
parent | Depend on compat4x on -CURRENT, since it is linked again libc.4 (diff) |
New port bins version 1.1.18: Tool to generate HTML photo albums
with XML support
Notes
Notes:
svn path=/head/; revision=70895
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/bins/Makefile | 122 | ||||
-rw-r--r-- | www/bins/distinfo | 1 | ||||
-rw-r--r-- | www/bins/files/extra-patch-install.sh | 41 | ||||
-rw-r--r-- | www/bins/pkg-comment | 1 | ||||
-rw-r--r-- | www/bins/pkg-descr | 17 | ||||
-rw-r--r-- | www/bins/pkg-plist | 140 |
7 files changed, 323 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index c5b2c30aeb4b..0111bafe04ba 100644 --- a/www/Makefile +++ b/www/Makefile @@ -28,6 +28,7 @@ SUBDIR += awstats SUBDIR += bacon SUBDIR += beonex + SUBDIR += bins SUBDIR += bk2site SUBDIR += bkmrkconv SUBDIR += bluefish diff --git a/www/bins/Makefile b/www/bins/Makefile new file mode 100644 index 000000000000..250bb7a381cd --- /dev/null +++ b/www/bins/Makefile @@ -0,0 +1,122 @@ +# New ports collection makefile for: bins +# Date created: Sat Nov 23 01:17:35 UTC 2002 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= bins +PORTVERSION= 1.1.18 +CATEGORIES= www +MASTER_SITES= http://jsautret.free.fr/BINS/ + +MAINTAINER= lioux@FreeBSD.org + +RUN_DEPENDS= \ + ${PBASE}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser \ + ${PBASE}/${PERL_ARCH}/Image/Magick.pm:${PORTSDIR}/graphics/ImageMagick \ + ${PBASE}/${PERL_ARCH}/Text/Iconv.pm:${PORTSDIR}/converters/p5-Text-Iconv \ + ${PBASE}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long \ + ${PBASE}/HTML/Clean.pm:${PORTSDIR}/www/p5-HTML-Clean \ + ${PBASE}/HTML/Template.pm:${PORTSDIR}/www/p5-HTML-Template \ + ${PBASE}/IO/String.pm:${PORTSDIR}/devel/p5-IO-String \ + ${PBASE}/Image/Info.pm:${PORTSDIR}/graphics/p5-Image-Info \ + ${PBASE}/Image/Size.pm:${PORTSDIR}/graphics/p5-Image-Size \ + ${PBASE}/URI/Escape.pm:${PORTSDIR}/net/p5-URI \ + ${PBASE}/XML/Grove.pm:${PORTSDIR}/textproc/p5-XML-Grove \ + ${PBASE}/XML/Handler/YAWriter.pm:${PORTSDIR}/textproc/p5-XML-Handler-YAWriter \ + ${PBASE}/XML/Parser/PerlSAX.pm:${PORTSDIR}/textproc/p5-libxml + +USE_BZIP2= yes +USE_PERL5_RUN= yes +USE_REINPLACE= yes +NO_BUILD= yes + +# perlbase +PBASE= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER} + +# additional scripts +BINS_SCRIPTS= bins_txt2xml +# doc file extension +DOC_EXTS= html sgml xml + +MAN1= bins-edit-gui.1 bins.1 bins_edit.1 + +post-patch: +# perl PREFIX safeness + @${FIND} ${WRKSRC} -type f | \ + ${XARGS} -n 10 -x ${REINPLACE_CMD} -E \ + -e 's|/usr/bin/perl|${PERL}|' +# prefix safeness + @${REINPLACE_CMD} -E \ + -e 's|(bins_edit=)".+"(.*)$$|\1"${PREFIX}/bin/bins_edit"\2|' \ + ${WRKSRC}/bins_txt2xml + +do-install: + @${SETENV} PREFIX=${PREFIX} RC=${PREFIX}/share/bins ${WRKSRC}/install.sh + +post-install: +.for file in ${BINS_SCRIPTS} + @${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin +.endfor +.ifndef(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for ext in ${DOC_EXTS} + @${INSTALL_DATA} ${WRKSRC}/doc/*.${ext} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.pre.mk> + +## +## this port requires PERL 5.6.x or later +## +.if !(exists(${LOCALBASE}/bin/perl5.6.0) || exists(${LOCALBASE}/bin/perl5.6.1)) +IGNORE= Port requires perl 5.6.x or later. Install lang/perl5 then try again +.endif + +## +## default for either bento or unattended builds +## +.ifdef(BATCH) +WITH_I18N=yes +.endif + +## +## Local options +## +# gui +.ifdef(WITH_GUI) +RUN_DEPENDS+= \ + ${PBASE}/${PERL_ARCH}/Gtk.pm:${PORTSDIR}/x11-toolkits/p5-Gtk \ + ${PBASE}/${PERL_ARCH}/Gtk/Gdk/ImlibImage.pm:${PORTSDIR}/x11-toolkits/p5-GdkImlib \ + ${PBASE}/${PERL_ARCH}/Gtk/GladeXML.pm:${PORTSDIR}/x11-toolkits/p5-Glade \ + ${PBASE}/XML/DOM.pm:${PORTSDIR}/textproc/p5-XML-DOM \ + ${PBASE}/XML/Writer.pm:${PORTSDIR}/textproc/p5-XML-Writer \ + ${PBASE}/XML/XQL.pm:${PORTSDIR}/textproc/p5-XML-XQL + +PLIST_SUB= GUI="" +.else +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-install.sh + +PLIST_SUB= GUI="@comment " +.endif +# localization support +.ifdef(WITH_I18N) +RUN_DEPENDS+= \ + ${PBASE}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext +.endif + +pre-everything:: +.ifndef(WITH_GUI) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_GUI to enable a libglade GUI' +.endif +.ifndef(WITH_I18N) + @${ECHO_MSG} '===>' + @${ECHO_MSG} '===> Define WITH_I18N to enable localization support.' + @${ECHO_MSG} '===> Support for languages other than english.' +.endif + @${ECHO_MSG} '===>' + +.include <bsd.port.post.mk> diff --git a/www/bins/distinfo b/www/bins/distinfo new file mode 100644 index 000000000000..b3ce7b65493a --- /dev/null +++ b/www/bins/distinfo @@ -0,0 +1 @@ +MD5 (bins-1.1.18.tar.bz2) = f7ce2ace7d7ea55beed3d0b607022d55 diff --git a/www/bins/files/extra-patch-install.sh b/www/bins/files/extra-patch-install.sh new file mode 100644 index 000000000000..110917bffb6a --- /dev/null +++ b/www/bins/files/extra-patch-install.sh @@ -0,0 +1,41 @@ +--- install.sh.orig Sat Nov 23 09:40:01 2002 ++++ install.sh Sat Nov 23 09:40:58 2002 +@@ -60,12 +60,11 @@ + mkdir -p $BIN 2>/dev/null || true + if [ -w $BIN ] ; then + echo "Installing program files in $BIN" +- cp bins bins_edit bins-edit-gui $BIN ++ cp bins bins_edit $BIN + chmod a+rx $BIN/bins + chmod a+rx $BIN/bins_edit +- chmod a+rx $BIN/bins-edit-gui + perl -pi -e "s{/usr/local/share}{$SHARE}g" \ +- $BIN/bins $BIN/bins_edit $BIN/bins-edit-gui ++ $BIN/bins $BIN/bins_edit + return 0 + else + echo "Cannot write to $BIN directory." +@@ -124,13 +123,6 @@ + fi + fi + +-# additionnal files +-mkdir -p $GLADE 2>/dev/null || true +-if [ -w $GLADE ] ; then +- echo "Installing additionnal files in $GLADE" +- cp bins-edit-gui.glade $GLADE +-fi +- + # man pages + mkdir -p $MAN 2>/dev/null || true + if [ -w $MAN ] ; then +@@ -146,9 +138,6 @@ + do + mkdir -p $LOCALE/$L/LC_MESSAGES 2>/dev/null || true + cp intl/$L.mo $LOCALE/$L/LC_MESSAGES/bins.mo +- if [ -f intl/gui-$L.mo ]; then +- cp intl/gui-$L.mo $LOCALE/$L/LC_MESSAGES/bins-edit-gui.mo +- fi + done + else + cat <<!EoF diff --git a/www/bins/pkg-comment b/www/bins/pkg-comment new file mode 100644 index 000000000000..7e89fe1f64fa --- /dev/null +++ b/www/bins/pkg-comment @@ -0,0 +1 @@ +Tool to generate HTML photo albums with XML support diff --git a/www/bins/pkg-descr b/www/bins/pkg-descr new file mode 100644 index 000000000000..23040a19e880 --- /dev/null +++ b/www/bins/pkg-descr @@ -0,0 +1,17 @@ +[ excerpt (with adaptations) from developer's website ] + +The aim of BINS is to generate HTML photo albums. + +Some of the functionalities of BINS are: +- album can contains other albums (sub albums): the album can have + a tree structure ; +- generation of a thumbnail and of scaled images of each picture ; +- number and size of scaled pictures can be personalized, in pixels + or percentage of the original image ; +- several description fields (date, location, etc...) can be + associated with the pictures ; +- use the EXIF data structure found on some JPEG (usually, those + produced by digital cameras) to fill automatically some fields + (date and time for example). + +WWW: http://jsautret.free.fr/BINS/ diff --git a/www/bins/pkg-plist b/www/bins/pkg-plist new file mode 100644 index 000000000000..00d4b4b94da3 --- /dev/null +++ b/www/bins/pkg-plist @@ -0,0 +1,140 @@ +bin/bins +%%GUI%%bin/bins-edit-gui +bin/bins_edit +bin/bins_txt2xml +%%GUI%%share/bins/bins-edit-gui.glade +share/bins/binsrc +share/bins/templates.default/details.html +share/bins/templates.default/footer.html +share/bins/templates.default/image.html +share/bins/templates.default/imagelist.html +share/bins/templates.default/navbar.html +share/bins/templates.default/path.html +share/bins/templates.default/subalbum.html +share/bins/templates.default/thumbnail.html +share/bins/templates.default/tree.html +share/bins/templates.joi/details.html +share/bins/templates.joi/footer.html +share/bins/templates.joi/image.html +share/bins/templates.joi/imagelist.html +share/bins/templates.joi/navbar.html +share/bins/templates.joi/path.html +share/bins/templates.joi/static/actthumb.png +share/bins/templates.joi/static/actthumb.png.bak +share/bins/templates.joi/static/albumtree.png +share/bins/templates.joi/static/albumtree.png.bak +share/bins/templates.joi/static/back.png +share/bins/templates.joi/static/back.png.bak +share/bins/templates.joi/static/contact.png +share/bins/templates.joi/static/contact.png.bak +share/bins/templates.joi/static/exit.png +share/bins/templates.joi/static/exit.png.bak +share/bins/templates.joi/static/home.png +share/bins/templates.joi/static/home.png.bak +share/bins/templates.joi/static/imagelist.png +share/bins/templates.joi/static/imagelist.png.bak +share/bins/templates.joi/static/info.png +share/bins/templates.joi/static/info.png.bak +share/bins/templates.joi/static/large.png +share/bins/templates.joi/static/large.png.bak +share/bins/templates.joi/static/largeActive.png +share/bins/templates.joi/static/largeActive.png.bak +share/bins/templates.joi/static/medium.png +share/bins/templates.joi/static/medium.png.bak +share/bins/templates.joi/static/mediumActive.png +share/bins/templates.joi/static/mediumActive.png.bak +share/bins/templates.joi/static/meshman.css +share/bins/templates.joi/static/meshman.css.bak +share/bins/templates.joi/static/next.png +share/bins/templates.joi/static/next.png.bak +share/bins/templates.joi/static/nextInactive.png +share/bins/templates.joi/static/nextInactive.png.bak +share/bins/templates.joi/static/prev.png +share/bins/templates.joi/static/prev.png.bak +share/bins/templates.joi/static/prevInactive.png +share/bins/templates.joi/static/prevInactive.png.bak +share/bins/templates.joi/static/preview.js +share/bins/templates.joi/static/preview.js.bak +share/bins/templates.joi/static/small.png +share/bins/templates.joi/static/small.png.bak +share/bins/templates.joi/static/smallActive.png +share/bins/templates.joi/static/smallActive.png.bak +share/bins/templates.joi/static/subalbum.png +share/bins/templates.joi/static/subalbum.png.bak +share/bins/templates.joi/static/thumbnails.png +share/bins/templates.joi/static/thumbnails.png.bak +share/bins/templates.joi/static/up.png +share/bins/templates.joi/static/up.png.bak +share/bins/templates.joi/subalbum.html +share/bins/templates.joi/subjectpath.html +share/bins/templates.joi/thumbnail.html +share/bins/templates.joi/thumbnav.html +share/bins/templates.joi/thumbnavrow.html +share/bins/templates.joi/tree.html +share/locale/de/LC_MESSAGES/bins.mo +%%GUI%%share/locale/fr/LC_MESSAGES/bins-edit-gui.mo +share/locale/fr/LC_MESSAGES/bins.mo +share/locale/it/LC_MESSAGES/bins.mo +share/locale/pl/LC_MESSAGES/bins.mo +share/locale/ru/LC_MESSAGES/bins.mo +%%PORTDOCS%%share/doc/bins/autolayout.xml +%%PORTDOCS%%share/doc/bins/bins-edit-gui.sgml +%%PORTDOCS%%share/doc/bins/bins-edit-gui_man.html +%%PORTDOCS%%share/doc/bins/bins.sgml +%%PORTDOCS%%share/doc/bins/bins_edit.sgml +%%PORTDOCS%%share/doc/bins/bins_edit_man.html +%%PORTDOCS%%share/doc/bins/bins_man.html +%%PORTDOCS%%share/doc/bins/download.html +%%PORTDOCS%%share/doc/bins/download.xml +%%PORTDOCS%%share/doc/bins/examples.html +%%PORTDOCS%%share/doc/bins/examples.xml +%%PORTDOCS%%share/doc/bins/index.html +%%PORTDOCS%%share/doc/bins/index.xml +%%PORTDOCS%%share/doc/bins/index_fr.html +%%PORTDOCS%%share/doc/bins/install.html +%%PORTDOCS%%share/doc/bins/install.xml +%%PORTDOCS%%share/doc/bins/install_automatic.html +%%PORTDOCS%%share/doc/bins/install_automatic.xml +%%PORTDOCS%%share/doc/bins/install_manual.html +%%PORTDOCS%%share/doc/bins/install_manual.xml +%%PORTDOCS%%share/doc/bins/install_prerequisites.html +%%PORTDOCS%%share/doc/bins/install_prerequisites.xml +%%PORTDOCS%%share/doc/bins/intro.html +%%PORTDOCS%%share/doc/bins/intro.xml +%%PORTDOCS%%share/doc/bins/layout.xml +%%PORTDOCS%%share/doc/bins/license.html +%%PORTDOCS%%share/doc/bins/license.xml +%%PORTDOCS%%share/doc/bins/usage.html +%%PORTDOCS%%share/doc/bins/usage.xml +%%PORTDOCS%%share/doc/bins/usage_album.html +%%PORTDOCS%%share/doc/bins/usage_album.xml +%%PORTDOCS%%share/doc/bins/usage_custom.html +%%PORTDOCS%%share/doc/bins/usage_custom.xml +%%PORTDOCS%%share/doc/bins/usage_desc.html +%%PORTDOCS%%share/doc/bins/usage_desc.xml +%%PORTDOCS%%share/doc/bins/usage_desc_cli.html +%%PORTDOCS%%share/doc/bins/usage_desc_cli.xml +%%PORTDOCS%%share/doc/bins/usage_desc_gui.html +%%PORTDOCS%%share/doc/bins/usage_desc_gui.xml +%%PORTDOCS%%share/doc/bins/usage_desc_gui_gqview.html +%%PORTDOCS%%share/doc/bins/usage_desc_gui_gqview.xml +%%PORTDOCS%%share/doc/bins/usage_desc_gui_nautilus.html +%%PORTDOCS%%share/doc/bins/usage_desc_gui_nautilus.xml +%%PORTDOCS%%share/doc/bins/usage_desc_xml.html +%%PORTDOCS%%share/doc/bins/usage_desc_xml.xml +%%PORTDOCS%%share/doc/bins/album.xml +@unexec rmdir %D/share/locale/ru/LC_MESSAGES 2>/dev/null || true +@unexec rmdir %D/share/locale/ru 2>/dev/null || true +@unexec rmdir %D/share/locale/pl/LC_MESSAGES 2>/dev/null || true +@unexec rmdir %D/share/locale/pl 2>/dev/null || true +@unexec rmdir %D/share/locale/it/LC_MESSAGES 2>/dev/null || true +@unexec rmdir %D/share/locale/it 2>/dev/null || true +@unexec rmdir %D/share/locale/fr/LC_MESSAGES 2>/dev/null || true +@unexec rmdir %D/share/locale/fr 2>/dev/null || true +@unexec rmdir %D/share/locale/de/LC_MESSAGES 2>/dev/null || true +@unexec rmdir %D/share/locale/de 2>/dev/null || true +%%PORTDOCS%%@dirrm share/doc/bins +@dirrm share/bins/templates.joi/static +@dirrm share/bins/templates.joi +@dirrm share/bins/templates.default +@dirrm share/bins |