[Bug 221737] [NEW PORT] graphics/pdfsandwich - http://www.tobias-elze.de/pdfsandwich/

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Aug 23 09:59:42 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221737

            Bug ID: 221737
           Summary: [NEW PORT] graphics/pdfsandwich -
                    http://www.tobias-elze.de/pdfsandwich/
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: vermaden at interia.pl

The PDFSANDWITCH ( http://www.tobias-elze.de/pdfsandwich/ ) works like a charm
compiled from source, would be nice to have it in Ports.

% svn checkout svn://svn.code.sf.net/p/pdfsandwich/code/trunk/src pdfsandwich
A    pdfsandwich/pdfsandwich.ml
A    pdfsandwich/Makefile
A    pdfsandwich/changelog
A    pdfsandwich/manual.txt
A    pdfsandwich/pdfsandwich_version
A    pdfsandwich/make_control.pl
A    pdfsandwich/copyright
A    pdfsandwich/ebuild-stub
A    pdfsandwich/make_portfile.pl
A    pdfsandwich/changelog2deb.pl
A    pdfsandwich/configure
A    pdfsandwich/txt2man
Checked out revision 71.

% cd pdfsandwich 

% ./configure --prefix=/opt/pdfsandwich                                         
./configure: ocamlc: not found
./configure: ocamlopt: not found

ocmalc not found, configuration failed.

# pkg install ocaml

% gmake clean
rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a *.so depend pdfsandwich
rm -f pdfsandwich_version.ml pdfsandwich.1.gz
rm -rf pdfsandwich-0.1.6 pdfsandwich-0.1.6.tar.bz2 pdfsandwich_0.1.6_i386
pdfsandwich_0.1.6_i386.deb

% ./configure --prefix=/opt/pdfsandwich

ocamlc found in /usr/local/lib/ocaml
ocamlopt found in /usr/local/lib/ocaml

PREFIX=/opt/pdfsandwich
makefile.installprefix written.

% gmake                                
echo "let pdfsandwich_version=\"0.1.6\";; (*automatically generated from file
pdfsandwich_version*)" > pdfsandwich_version.ml
ocamlopt -thread -w s  str.cmxa unix.cmxa threads.cmxa  -c
pdfsandwich_version.ml
ocamlopt -thread -w s  str.cmxa unix.cmxa threads.cmxa  -o pdfsandwich
pdfsandwich_version.cmx pdfsandwich.ml
# you need gawk for this:
./txt2man -t PDFSANDWICH manual.txt | gzip -9 > pdfsandwich.1.gz

# gmake install
(umask 0022; mkdir -p /opt/pdfsandwich/bin
/opt/pdfsandwich/share/doc/pdfsandwich /opt/pdfsandwich/share/man/man1)
install -s pdfsandwich /opt/pdfsandwich/bin
cp copyright changelog /opt/pdfsandwich/share/doc/pdfsandwich
gzip -9 /opt/pdfsandwich/share/doc/pdfsandwich/changelog
cp pdfsandwich.1.gz /opt/pdfsandwich/share/man/man1
chmod 644 /opt/pdfsandwich/share/doc/pdfsandwich/*
/opt/pdfsandwich/share/man/man1/*

% find /opt/pdfsandwich 
/opt/pdfsandwich
/opt/pdfsandwich/share
/opt/pdfsandwich/share/man
/opt/pdfsandwich/share/man/man1
/opt/pdfsandwich/share/man/man1/pdfsandwich.1.gz
/opt/pdfsandwich/share/doc
/opt/pdfsandwich/share/doc/pdfsandwich
/opt/pdfsandwich/share/doc/pdfsandwich/changelog.gz
/opt/pdfsandwich/share/doc/pdfsandwich/copyright
/opt/pdfsandwich/bin
/opt/pdfsandwich/bin/pdfsandwich

% ./pdfsandwich             
Fatal error: exception Failure("Could not find program unpaper. Make sure this
program exists and can be found in your search path.\nUse command line options
to specify a custom binary.")

# pkg install tesseract

% ./pdfsandwich 
Fatal error: exception Failure("Could not find program tesseract. Make sure
this program exists and can be found in your search path.\nUse command line
options to specify a custom binary.")

# pkg install unpaper

% /opt/pdfsandwich/bin/pdfsandwich 
Fatal error: exception Failure("Could not open file ")

Known dependencies are for sure: gmake/gawk/ocaml/tesseract/unpaper

Regards,
vermaden

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list