diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-03-18 21:56:50 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-03-18 21:56:50 +0000 |
commit | d371fff0cacbe00dbe6ab9e13f8ac5b953bb9318 (patch) | |
tree | 12e6e822c9b897358242b3f74f65678d69081932 /print | |
parent | b16723fd670e8305689626948a2bcb6608dcfda7 (diff) |
Notes
Diffstat (limited to 'print')
-rw-r--r-- | print/Makefile | 1 | ||||
-rw-r--r-- | print/pdfmerge/Makefile | 52 | ||||
-rw-r--r-- | print/pdfmerge/distinfo | 2 | ||||
-rw-r--r-- | print/pdfmerge/files/patch-Scripts-bash_f_dlg | 8 | ||||
-rw-r--r-- | print/pdfmerge/files/patch-Scripts-bash_pr_dlg | 8 | ||||
-rw-r--r-- | print/pdfmerge/files/patch-Scripts-bash_sg_dlg | 8 | ||||
-rw-r--r-- | print/pdfmerge/files/patch-Scripts-bash_ui | 8 | ||||
-rw-r--r-- | print/pdfmerge/files/patch-Scripts-merge_pdf | 35 | ||||
-rw-r--r-- | print/pdfmerge/files/patch-Scripts-ps2pdf | 8 | ||||
-rw-r--r-- | print/pdfmerge/files/patch-Scripts-ps2pdf12 | 8 | ||||
-rw-r--r-- | print/pdfmerge/files/patch-Scripts-ps2pdfwr | 8 | ||||
-rw-r--r-- | print/pdfmerge/pkg-descr | 10 | ||||
-rw-r--r-- | print/pdfmerge/pkg-plist | 10 |
13 files changed, 166 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile index bfd04ace09a1..446e3be0f6e8 100644 --- a/print/Makefile +++ b/print/Makefile @@ -165,6 +165,7 @@ SUBDIR += pclprint SUBDIR += pdflib SUBDIR += pdflib-perl + SUBDIR += pdfmerge SUBDIR += pdftk SUBDIR += pdq SUBDIR += pecl-panda diff --git a/print/pdfmerge/Makefile b/print/pdfmerge/Makefile new file mode 100644 index 000000000000..f7dacaaeaf4a --- /dev/null +++ b/print/pdfmerge/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: pdfmerge +# Date created: Mar 15 2005 +# Whom: Nicola Vitale <nivit@email.it> +# +# $FreeBSD$ +# + +PORTNAME= pdfmerge +PORTVERSION= 1.0 +CATEGORIES= print +MASTER_SITES= http://web.hku.hk/cgi-bin/cgiwrap/kangsg/freeware/ +DISTNAME= PDFMerge +EXTRACT_SUFX= .zip + +MAINTAINER= nivit@email.it +COMMENT= A shell script (with simple UI) to merge PDF files + +RUN_DEPENDS= bash:${PORTSDIR}/shells/bash + +USE_ZIP= yes +USE_GHOSTSCRIPT_RUN= yes + +WRKSRC= ${WRKDIR}/Scripts +NO_BUILD= yes +NO_INSTALL_MANPAGES= yes + +FIND_ARGS= \! -type d -and \! -name "*.orig" \! -name "*.txt" \! -name "*.bak" +LINK_OPTS?= -sf +SED_OPTS= -i .bak + +post-patch: + @REPLACE_FILES=$$(${FIND} ${WRKSRC} ${FIND_ARGS} ); \ + for FILE in $${REPLACE_FILES}; do \ + ${SED} ${SED_OPTS} \ + -e "/%%LOCALBASE%%/s//${LOCALBASE:S/\//\\\//g}/g" \ + -e "/%%DATADIR%%/s//${DATADIR:S/\//\\\//g}/g" $${FILE}; \ + done; + +do-install: +# Scripts + ${MKDIR} ${DATADIR}; \ + cd ${WRKSRC}; \ + FILES=$$(${FIND} . ${FIND_ARGS} ); \ + for FILE in $${FILES}; do \ + ${INSTALL_SCRIPT} $${FILE} ${DATADIR}/$${FILE}; \ + done; + +# Link to executable + FILE=merge_pdf; \ + ${LN} ${LINK_OPTS} ${DATADIR}/$${FILE} ${PREFIX}/bin/${PORTNAME}; + +.include <bsd.port.mk> diff --git a/print/pdfmerge/distinfo b/print/pdfmerge/distinfo new file mode 100644 index 000000000000..2f856a237cf7 --- /dev/null +++ b/print/pdfmerge/distinfo @@ -0,0 +1,2 @@ +MD5 (PDFMerge.zip) = a2e5349bf710464218214b4241f18fd5 +SIZE (PDFMerge.zip) = 9377 diff --git a/print/pdfmerge/files/patch-Scripts-bash_f_dlg b/print/pdfmerge/files/patch-Scripts-bash_f_dlg new file mode 100644 index 000000000000..f1411feebc39 --- /dev/null +++ b/print/pdfmerge/files/patch-Scripts-bash_f_dlg @@ -0,0 +1,8 @@ +--- bash_f_dlg Thu Jan 29 17:14:44 2004 ++++ bash_f_dlg.port Tue Mar 15 13:47:23 2005 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!%%LOCALBASE%%/bin/bash + + #################################################################### + # diff --git a/print/pdfmerge/files/patch-Scripts-bash_pr_dlg b/print/pdfmerge/files/patch-Scripts-bash_pr_dlg new file mode 100644 index 000000000000..248e5a90b521 --- /dev/null +++ b/print/pdfmerge/files/patch-Scripts-bash_pr_dlg @@ -0,0 +1,8 @@ +--- bash_pr_dlg Thu Jan 29 17:14:44 2004 ++++ bash_pr_dlg.port Tue Mar 15 13:47:36 2005 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!%%LOCALBASE%%/bin/bash + + load_process_dlg_ui () { + load_ui_res << EOF diff --git a/print/pdfmerge/files/patch-Scripts-bash_sg_dlg b/print/pdfmerge/files/patch-Scripts-bash_sg_dlg new file mode 100644 index 000000000000..83fa60dfdf7f --- /dev/null +++ b/print/pdfmerge/files/patch-Scripts-bash_sg_dlg @@ -0,0 +1,8 @@ +--- bash_sg_dlg Thu Jan 29 17:14:44 2004 ++++ bash_sg_dlg.port Tue Mar 15 13:47:46 2005 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!%%LOCALBASE%%/bin/bash + + ################################################## + # diff --git a/print/pdfmerge/files/patch-Scripts-bash_ui b/print/pdfmerge/files/patch-Scripts-bash_ui new file mode 100644 index 000000000000..3906283529fc --- /dev/null +++ b/print/pdfmerge/files/patch-Scripts-bash_ui @@ -0,0 +1,8 @@ +--- bash_ui Thu Jan 29 17:14:44 2004 ++++ bash_ui.port Tue Mar 15 13:47:54 2005 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!%%LOCALBASE%%/bin/bash + + #################################################################### + # diff --git a/print/pdfmerge/files/patch-Scripts-merge_pdf b/print/pdfmerge/files/patch-Scripts-merge_pdf new file mode 100644 index 000000000000..783333710f18 --- /dev/null +++ b/print/pdfmerge/files/patch-Scripts-merge_pdf @@ -0,0 +1,35 @@ +--- merge_pdf Thu Jan 29 17:14:44 2004 ++++ merge_pdf.port Tue Mar 15 19:13:06 2005 +@@ -1,5 +1,6 @@ +-#!/bin/bash ++#!%%LOCALBASE%%/bin/bash + ++cd %%DATADIR%% + source bash_ui + source bash_f_dlg + source bash_sg_dlg +@@ -48,12 +49,12 @@ + # The main procedure + # + ################################################## +-root_path=${0%[/]*} ++root_path=%%DATADIR%% + export PATH=$PATH:/bin:$root_path + cd "$root_path" + recent_dir="`pwd`" +-if [ -f .merge_pdf.cfg ]; then +- recent_dir="$(< .merge_pdf.cfg)" ++if [ -f ~/.merge_pdf.cfg ]; then ++ recent_dir="$(< ~/.merge_pdf.cfg)" + fi + tty_init + run_src_gather_dialog "[PDF Merge]" "Merge" "Merge pdf files" '*.[Pp][Dd][Ff]' '*.pdf' +@@ -81,7 +82,7 @@ + fi + fi + tty_restore +-echo "$recent_dir" > .merge_pdf.cfg ++echo "$recent_dir" > ~/.merge_pdf.cfg + exit 0 + + diff --git a/print/pdfmerge/files/patch-Scripts-ps2pdf b/print/pdfmerge/files/patch-Scripts-ps2pdf new file mode 100644 index 000000000000..81b559e7b318 --- /dev/null +++ b/print/pdfmerge/files/patch-Scripts-ps2pdf @@ -0,0 +1,8 @@ +--- ps2pdf Sat Jan 10 21:11:14 2004 ++++ ps2pdf.port Tue Mar 15 13:48:15 2005 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!%%LOCALBASE%%/bin/bash + # $Id: ps2pdf,v 1.1 2000/03/09 08:40:40 lpd Exp $ + # Convert PostScript to PDF. + diff --git a/print/pdfmerge/files/patch-Scripts-ps2pdf12 b/print/pdfmerge/files/patch-Scripts-ps2pdf12 new file mode 100644 index 000000000000..f798c1ca8841 --- /dev/null +++ b/print/pdfmerge/files/patch-Scripts-ps2pdf12 @@ -0,0 +1,8 @@ +--- ps2pdf12 Sat Jan 10 21:11:14 2004 ++++ ps2pdf12.port Tue Mar 15 13:48:26 2005 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!%%LOCALBASE%%/bin/bash + # $Id: ps2pdf12,v 1.1 2000/03/09 08:40:40 lpd Exp $ + # Convert PostScript to PDF 1.2 (Acrobat 3-and-later compatible). + diff --git a/print/pdfmerge/files/patch-Scripts-ps2pdfwr b/print/pdfmerge/files/patch-Scripts-ps2pdfwr new file mode 100644 index 000000000000..e6dc7d21fb64 --- /dev/null +++ b/print/pdfmerge/files/patch-Scripts-ps2pdfwr @@ -0,0 +1,8 @@ +--- ps2pdfwr Sat Jan 10 21:11:14 2004 ++++ ps2pdfwr.port Tue Mar 15 13:48:43 2005 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!%%LOCALBASE%%/bin/bash + # $Id: ps2pdfwr,v 1.6.2.1 2002/01/22 21:34:04 jackiem Exp $ + # Convert PostScript to PDF without specifying CompatibilityLevel. + diff --git a/print/pdfmerge/pkg-descr b/print/pdfmerge/pkg-descr new file mode 100644 index 000000000000..1e6bf3802039 --- /dev/null +++ b/print/pdfmerge/pkg-descr @@ -0,0 +1,10 @@ +A small tool to merge several PDF files into one PDF file +(based on Ghostscript). + +It has the following features: + + * Add/Remove PDF files; + * Adjust the order of the PDF files; + * Merge the PDF file based on ps2pdf. + +WWW: http://web.hku.hk/~kangsg/freeware/ diff --git a/print/pdfmerge/pkg-plist b/print/pdfmerge/pkg-plist new file mode 100644 index 000000000000..561cd4b9ebf1 --- /dev/null +++ b/print/pdfmerge/pkg-plist @@ -0,0 +1,10 @@ +bin/pdfmerge +%%DATADIR%%/bash_f_dlg +%%DATADIR%%/bash_pr_dlg +%%DATADIR%%/bash_sg_dlg +%%DATADIR%%/bash_ui +%%DATADIR%%/merge_pdf +%%DATADIR%%/ps2pdf +%%DATADIR%%/ps2pdf12 +%%DATADIR%%/ps2pdfwr +@dirrm %%DATADIR%% |