Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Aug 2017 09:59:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 221737] [NEW PORT] graphics/pdfsandwich - http://www.tobias-elze.de/pdfsandwich/
Message-ID:  <bug-221737-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221737

            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@FreeBSD.org
          Reporter: vermaden@interia.pl

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

% svn checkout svn://svn.code.sf.net/p/pdfsandwich/code/trunk/src pdfsandwi=
ch
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=20

% ./configure --prefix=3D/opt/pdfsandwich=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20
./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=3D/opt/pdfsandwich

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

PREFIX=3D/opt/pdfsandwich
makefile.installprefix written.

% gmake=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20
echo "let pdfsandwich_version=3D\"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=20
/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=20=20=20=20=20=20=20=20=20=20=20=20=20
Fatal error: exception Failure("Could not find program unpaper. Make sure t=
his
program exists and can be found in your search path.\nUse command line opti=
ons
to specify a custom binary.")

# pkg install tesseract

% ./pdfsandwich=20
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=20
Fatal error: exception Failure("Could not open file ")

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

Regards,
vermaden

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221737-13>