Date: 15 Mar 2005 18:33:31 -0000 From: Nicola Vitale <nivit@email.it> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/78895: [NEW PORT] print/pdfmerge: A shell script to merge PDF files Message-ID: <20050315183331.51920.qmail@psyllobora> Resent-Message-ID: <200503152040.j2FKe2Zn090805@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 78895 >Category: ports >Synopsis: [NEW PORT] print/pdfmerge: A shell script to merge PDF files >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Mar 15 20:40:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Nicola Vitale >Release: FreeBSD 4.11-STABLE i386 >Organization: >Environment: >Description: 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/ -- Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- pdfmerge-1.0.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # pdfmerge # pdfmerge/Makefile # pdfmerge/pkg-descr # pdfmerge/pkg-plist # pdfmerge/distinfo # pdfmerge/files # pdfmerge/files/patch-Scripts-merge_pdf # pdfmerge/files/patch-Scripts-bash_sg_dlg # pdfmerge/files/patch-Scripts-bash_f_dlg # pdfmerge/files/patch-Scripts-ps2pdf12 # pdfmerge/files/patch-Scripts-ps2pdfwr # pdfmerge/files/patch-Scripts-ps2pdf # pdfmerge/files/patch-Scripts-bash_ui # pdfmerge/files/patch-Scripts-bash_pr_dlg # echo c - pdfmerge mkdir -p pdfmerge > /dev/null 2>&1 echo x - pdfmerge/Makefile sed 's/^X//' >pdfmerge/Makefile << 'END-of-pdfmerge/Makefile' X# New ports collection makefile for: pdfmerge X# Date created: Mar 15 2005 X# Whom: Nicola Vitale <nivit@email.it> X# X# $FreeBSD$ X# X XPORTNAME= pdfmerge XPORTVERSION= 1.0 XCATEGORIES= print XMASTER_SITES= http://web.hku.hk/cgi-bin/cgiwrap/kangsg/freeware/ XDISTNAME= PDFMerge XEXTRACT_SUFX= .zip X XMAINTAINER= nivit@email.it XCOMMENT= A shell script (with simple UI) to merge PDF files X XRUN_DEPENDS= bash:${PORTSDIR}/shells/bash X XUSE_ZIP= yes XUSE_GHOSTSCRIPT_RUN= yes X XWRKSRC= ${WRKDIR}/Scripts XNO_BUILD= yes XNO_INSTALL_MANPAGES= yes X XFIND_ARGS= \! -type d -and \! -name "*.orig" \! -name "*.txt" \! -name "*.bak" XLINK_OPTS?= -sf XSED_OPTS= -i .bak X Xpost-patch: X @REPLACE_FILES=$$(${FIND} ${WRKSRC} ${FIND_ARGS} ); \ X for FILE in $${REPLACE_FILES}; do \ X ${SED} ${SED_OPTS} \ X -e "/%%PREFIX%%/s//${PREFIX:S/\//\\\//g}/g" \ X -e "/%%DATADIR%%/s//${DATADIR:S/\//\\\//g}/g" $${FILE}; \ X done; X Xdo-install: X# Scripts X @${MKDIR} ${DATADIR}; \ X cd ${WRKSRC}; \ X FILES=$$(${FIND} . ${FIND_ARGS} ); \ X for FILE in $${FILES}; do \ X ${INSTALL_SCRIPT} $${FILE} ${DATADIR}/$${FILE}; \ X done; X X# Link to executable X @FILE=merge_pdf; \ X ${LN} ${LINK_OPTS} ${DATADIR}/$${FILE} ${PREFIX}/bin/${PORTNAME}; X X.include <bsd.port.mk> END-of-pdfmerge/Makefile echo x - pdfmerge/pkg-descr sed 's/^X//' >pdfmerge/pkg-descr << 'END-of-pdfmerge/pkg-descr' XA small tool to merge several PDF files into one PDF file X(based on Ghostscript). X XIt has the following features: X X * Add/Remove PDF files; X * Adjust the order of the PDF files; X * Merge the PDF file based on ps2pdf. X XWWW: http://web.hku.hk/~kangsg/freeware/ END-of-pdfmerge/pkg-descr echo x - pdfmerge/pkg-plist sed 's/^X//' >pdfmerge/pkg-plist << 'END-of-pdfmerge/pkg-plist' Xbin/pdfmerge X%%DATADIR%%/bash_f_dlg X%%DATADIR%%/bash_pr_dlg X%%DATADIR%%/bash_sg_dlg X%%DATADIR%%/bash_ui X%%DATADIR%%/merge_pdf X%%DATADIR%%/ps2pdf X%%DATADIR%%/ps2pdf12 X%%DATADIR%%/ps2pdfwr X@dirrm %%DATADIR%% END-of-pdfmerge/pkg-plist echo x - pdfmerge/distinfo sed 's/^X//' >pdfmerge/distinfo << 'END-of-pdfmerge/distinfo' XMD5 (PDFMerge.zip) = a2e5349bf710464218214b4241f18fd5 XSIZE (PDFMerge.zip) = 9377 END-of-pdfmerge/distinfo echo c - pdfmerge/files mkdir -p pdfmerge/files > /dev/null 2>&1 echo x - pdfmerge/files/patch-Scripts-merge_pdf sed 's/^X//' >pdfmerge/files/patch-Scripts-merge_pdf << 'END-of-pdfmerge/files/patch-Scripts-merge_pdf' X--- merge_pdf Thu Jan 29 17:14:44 2004 X+++ merge_pdf.port Tue Mar 15 19:13:06 2005 X@@ -1,5 +1,6 @@ X-#!/bin/bash X+#!%%PREFIX%%/bin/bash X X+cd %%DATADIR%% X source bash_ui X source bash_f_dlg X source bash_sg_dlg X@@ -48,12 +49,12 @@ X # The main procedure X # X ################################################## X-root_path=${0%[/]*} X+root_path=%%DATADIR%% X export PATH=$PATH:/bin:$root_path X cd "$root_path" X recent_dir="`pwd`" X-if [ -f .merge_pdf.cfg ]; then X- recent_dir="$(< .merge_pdf.cfg)" X+if [ -f ~/.merge_pdf.cfg ]; then X+ recent_dir="$(< ~/.merge_pdf.cfg)" X fi X tty_init X run_src_gather_dialog "[PDF Merge]" "Merge" "Merge pdf files" '*.[Pp][Dd][Ff]' '*.pdf' X@@ -81,7 +82,7 @@ X fi X fi X tty_restore X-echo "$recent_dir" > .merge_pdf.cfg X+echo "$recent_dir" > ~/.merge_pdf.cfg X exit 0 X X END-of-pdfmerge/files/patch-Scripts-merge_pdf echo x - pdfmerge/files/patch-Scripts-bash_sg_dlg sed 's/^X//' >pdfmerge/files/patch-Scripts-bash_sg_dlg << 'END-of-pdfmerge/files/patch-Scripts-bash_sg_dlg' X--- bash_sg_dlg Thu Jan 29 17:14:44 2004 X+++ bash_sg_dlg.port Tue Mar 15 13:47:46 2005 X@@ -1,4 +1,4 @@ X-#!/bin/bash X+#!%%PREFIX%%/bin/bash X X ################################################## X # END-of-pdfmerge/files/patch-Scripts-bash_sg_dlg echo x - pdfmerge/files/patch-Scripts-bash_f_dlg sed 's/^X//' >pdfmerge/files/patch-Scripts-bash_f_dlg << 'END-of-pdfmerge/files/patch-Scripts-bash_f_dlg' X--- bash_f_dlg Thu Jan 29 17:14:44 2004 X+++ bash_f_dlg.port Tue Mar 15 13:47:23 2005 X@@ -1,4 +1,4 @@ X-#!/bin/bash X+#!%%PREFIX%%/bin/bash X X #################################################################### X # END-of-pdfmerge/files/patch-Scripts-bash_f_dlg echo x - pdfmerge/files/patch-Scripts-ps2pdf12 sed 's/^X//' >pdfmerge/files/patch-Scripts-ps2pdf12 << 'END-of-pdfmerge/files/patch-Scripts-ps2pdf12' X--- ps2pdf12 Sat Jan 10 21:11:14 2004 X+++ ps2pdf12.port Tue Mar 15 13:48:26 2005 X@@ -1,4 +1,4 @@ X-#!/bin/bash X+#!%%PREFIX%%/bin/bash X # $Id: ps2pdf12,v 1.1 2000/03/09 08:40:40 lpd Exp $ X # Convert PostScript to PDF 1.2 (Acrobat 3-and-later compatible). X END-of-pdfmerge/files/patch-Scripts-ps2pdf12 echo x - pdfmerge/files/patch-Scripts-ps2pdfwr sed 's/^X//' >pdfmerge/files/patch-Scripts-ps2pdfwr << 'END-of-pdfmerge/files/patch-Scripts-ps2pdfwr' X--- ps2pdfwr Sat Jan 10 21:11:14 2004 X+++ ps2pdfwr.port Tue Mar 15 13:48:43 2005 X@@ -1,4 +1,4 @@ X-#!/bin/bash X+#!%%PREFIX%%/bin/bash X # $Id: ps2pdfwr,v 1.6.2.1 2002/01/22 21:34:04 jackiem Exp $ X # Convert PostScript to PDF without specifying CompatibilityLevel. X END-of-pdfmerge/files/patch-Scripts-ps2pdfwr echo x - pdfmerge/files/patch-Scripts-ps2pdf sed 's/^X//' >pdfmerge/files/patch-Scripts-ps2pdf << 'END-of-pdfmerge/files/patch-Scripts-ps2pdf' X--- ps2pdf Sat Jan 10 21:11:14 2004 X+++ ps2pdf.port Tue Mar 15 13:48:15 2005 X@@ -1,4 +1,4 @@ X-#!/bin/bash X+#!%%PREFIX%%/bin/bash X # $Id: ps2pdf,v 1.1 2000/03/09 08:40:40 lpd Exp $ X # Convert PostScript to PDF. X END-of-pdfmerge/files/patch-Scripts-ps2pdf echo x - pdfmerge/files/patch-Scripts-bash_ui sed 's/^X//' >pdfmerge/files/patch-Scripts-bash_ui << 'END-of-pdfmerge/files/patch-Scripts-bash_ui' X--- bash_ui Thu Jan 29 17:14:44 2004 X+++ bash_ui.port Tue Mar 15 13:47:54 2005 X@@ -1,4 +1,4 @@ X-#!/bin/bash X+#!%%PREFIX%%/bin/bash X X #################################################################### X # END-of-pdfmerge/files/patch-Scripts-bash_ui echo x - pdfmerge/files/patch-Scripts-bash_pr_dlg sed 's/^X//' >pdfmerge/files/patch-Scripts-bash_pr_dlg << 'END-of-pdfmerge/files/patch-Scripts-bash_pr_dlg' X--- bash_pr_dlg Thu Jan 29 17:14:44 2004 X+++ bash_pr_dlg.port Tue Mar 15 13:47:36 2005 X@@ -1,4 +1,4 @@ X-#!/bin/bash X+#!%%PREFIX%%/bin/bash X X load_process_dlg_ui () { X load_ui_res << EOF END-of-pdfmerge/files/patch-Scripts-bash_pr_dlg exit --- pdfmerge-1.0.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050315183331.51920.qmail>