Date: Mon, 11 Mar 2019 02:32:04 +0000 (UTC) From: Koichiro Iwao <meta@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r495325 - in head: . converters converters/pdf2djvu converters/pdf2djvu/files Message-ID: <201903110232.x2B2W4aP026085@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: meta Date: Mon Mar 11 02:32:04 2019 New Revision: 495325 URL: https://svnweb.freebsd.org/changeset/ports/495325 Log: Readd and rework convertes/pdf2djvu This port was deleted due to no public distfiles. Now upstream distributes tarballs on GitHub [1]. - Update to 0.9.12 - Add USES=autoreconf:build and a bootstrap file; define the target pre-configure - Make the manual within the post-build target - Add USE_CXXSTD=c++11 - Add options COLOR_QUANTIZATION, NLS, MULTITHREADING, XMP - Add LICENSE_FILE - Patch tools/install-manpages for proper echoing (no functional change) - Remove the port name from COMMENT to follow the guidelines of the handbook - Strip the executable within the post-install target - Submitter is the new MAINTAINER [1] https://github.com/jwilk/pdf2djvu PR: 236299 Submitted by: Samy Mahmoudi <samy.mahmoudi@gmail.com> Added: head/converters/pdf2djvu/ - copied from r471891, head/converters/pdf2djvu/ head/converters/pdf2djvu/files/ head/converters/pdf2djvu/files/bootstrap (contents, props changed) head/converters/pdf2djvu/files/patch-tools_install-manpages (contents, props changed) Modified: head/MOVED head/converters/Makefile head/converters/pdf2djvu/Makefile head/converters/pdf2djvu/distinfo Modified: head/MOVED ============================================================================== --- head/MOVED Mon Mar 11 01:14:52 2019 (r495324) +++ head/MOVED Mon Mar 11 02:32:04 2019 (r495325) @@ -10197,7 +10197,6 @@ comms/java-commapi-freebsd||2018-06-07|Has expired: De comms/soundmodem||2018-06-07|Has expired: Broken for more than 6 months comms/jsdr||2018-06-07|Has expired: Broken for more than 6 months comms/java-commapi||2018-06-07|Has expired: Broken for more than 6 months -converters/pdf2djvu||2018-06-07|Has expired: Broken for more than 6 months databases/rdb||2018-06-07|Has expired: Broken for more than 6 months databases/animenfo-client||2018-06-07|Has expired: Broken for more than 6 months databases/ruby-mysql||2018-06-07|Has expired: Broken for more than 6 months Modified: head/converters/Makefile ============================================================================== --- head/converters/Makefile Mon Mar 11 01:14:52 2019 (r495324) +++ head/converters/Makefile Mon Mar 11 02:32:04 2019 (r495325) @@ -136,6 +136,7 @@ SUBDIR += p5-XML-WBXML SUBDIR += p5-bsdconv SUBDIR += p5-plutil + SUBDIR += pdf2djvu SUBDIR += pear-Services_JSON SUBDIR += pecl-igbinary SUBDIR += php-bsdconv Modified: head/converters/pdf2djvu/Makefile ============================================================================== --- head/converters/pdf2djvu/Makefile Thu Jun 7 00:32:27 2018 (r471891) +++ head/converters/pdf2djvu/Makefile Mon Mar 11 02:32:04 2019 (r495325) @@ -1,32 +1,63 @@ -# Created by: Denise H. G. <darcsis@gmail.com> # $FreeBSD$ PORTNAME= pdf2djvu -PORTVERSION= 0.7.21 -PORTREVISION= 6 +PORTVERSION= 0.9.12 CATEGORIES= converters -MASTER_SITES= https://bitbucket.org/jwilk/pdf2djvu/downloads/ -MAINTAINER= darcsis@gmail.com -COMMENT= Pdf2djvu creates DjVu files from PDF files +MAINTAINER= samy.mahmoudi@gmail.com +COMMENT= Creates DjVu files from PDF files LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN= No public distfiles -DEPRECATED= Broken for more than 6 months -EXPIRATION_DATE= 2018-06-06 - BUILD_DEPENDS= ${LOCALBASE}/include/pstreams/pstream.h:devel/pstreams -LIB_DEPENDS= libpoppler.so:graphics/poppler \ - libdjvulibre.so:graphics/djvulibre +LIB_DEPENDS= libdjvulibre.so:graphics/djvulibre \ + libpoppler.so:graphics/poppler +USES= autoreconf:build compiler:c++11-lang gettext-tools \ + gmake iconv localbase pkgconfig tar:xz +USE_CXXSTD= c++11 + +USE_GITHUB= yes +GH_TUPLE= jwilk:${PORTNAME}:${PORTVERSION} + GNU_CONFIGURE= yes -USES= compiler:c++11-lang gmake pkgconfig tar:xz +PLIST_FILES= bin/pdf2djvu -PLIST_FILES= bin/pdf2djvu man/man1/pdf2djvu.1.gz +OPTIONS_DEFINE= COLOR_QUANTIZATION DOCS NLS MULTITHREADING XMP +OPTIONS_DEFAULT=COLOR_QUANTIZATION MULTITHREADING XMP -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1 +COLOR_QUANTIZATION_DESC=Color quantization via GraphicsMagick++ +DOCS= Generate the man page +NLS_DESC= Native Language Support via gettext utilities +MULTITHREADING_DESC= Multithreading support via OpenMP +XMP_DESC= XMP metadata support via Exiv2 + +COLOR_QUANTIZATION_CONFIGURE_WITH=graphicsmagick +COLOR_QUANTIZATION_LIB_DEPENDS= \ + libGraphicsMagick++.so:graphics/GraphicsMagick \ + libGraphicsMagick.so:graphics/GraphicsMagick + +DOCS_BUILD_DEPENDS= docbook-xsl>0:textproc/docbook-xsl \ + xsltproc:textproc/libxslt +DOCS_PLIST_FILES= man/man1/pdf2djvu.1.gz + +NLS_CONFIGURE_ENABLE= nls +NLS_USES= gettext-runtime + +MULTITHREADING_CONFIGURE_ENABLE=openmp +MULTITHREADING_LIB_DEPENDS= libomp.so:devel/openmp + +XMP_CONFIGURE_ENABLE= xmp +XMP_LIB_DEPENDS= libexiv2.so:graphics/exiv2 + +pre-configure: + @cd ${WRKSRC} && ${SH} ${FILESDIR}/bootstrap + +post-build-DOCS-on: + @cd ${WRKSRC}/doc && ${GMAKE} + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .include <bsd.port.mk> Modified: head/converters/pdf2djvu/distinfo ============================================================================== --- head/converters/pdf2djvu/distinfo Thu Jun 7 00:32:27 2018 (r471891) +++ head/converters/pdf2djvu/distinfo Mon Mar 11 02:32:04 2019 (r495325) @@ -1,2 +1,3 @@ -SHA256 (pdf2djvu-0.7.21.tar.xz) = 12d480cc3ce2369e1f1b39b7f5e6fbb44351d8b07861295d34e6978f58b687b9 -SIZE (pdf2djvu-0.7.21.tar.xz) = 229020 +TIMESTAMP = 1551662199 +SHA256 (jwilk-pdf2djvu-0.9.12_GH0.tar.gz) = 83f08f80a4bf24912e542ccaf3179cd57715bfee82c50e87272060475a454e2d +SIZE (jwilk-pdf2djvu-0.9.12_GH0.tar.gz) = 191227 Added: head/converters/pdf2djvu/files/bootstrap ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/converters/pdf2djvu/files/bootstrap Mon Mar 11 02:32:04 2019 (r495325) @@ -0,0 +1,9 @@ +#!/bin/sh + +mkdir -p m4 +aclocal +autoconf +autoheader +automake --add-missing +autopoint +exit 0 Added: head/converters/pdf2djvu/files/patch-tools_install-manpages ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/converters/pdf2djvu/files/patch-tools_install-manpages Mon Mar 11 02:32:04 2019 (r495325) @@ -0,0 +1,20 @@ +--- tools/install-manpages.orig 2019-03-05 23:29:08 UTC ++++ tools/install-manpages +@@ -28,14 +28,14 @@ do + basename=$(basename "$manpage") + suffix=${basename#*.} + locale=${suffix%.*} +- [ "$locale" = "$suffix" ] && locale= ++ [ "$locale" = "$suffix" ] && locale= || locale=$locale/ + section=${suffix#*.} + basename=${basename%%.*} + ( + PS4='$ ' + set -x +- $INSTALL -d "$mandir/$locale/man$section" +- $INSTALL -m 644 "$manpage" "$mandir/$locale/man$section/$basename.$section" ++ $INSTALL -d "$mandir/${locale}man$section" ++ $INSTALL -m 644 "$manpage" "$mandir/${locale}man$section/$basename.$section" + ) + done +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903110232.x2B2W4aP026085>