mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
75 lines
2.9 KiB
Tcl
75 lines
2.9 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
PortGroup perl5 1.0
|
|
|
|
name gscan2pdf
|
|
version 2.13.2
|
|
revision 1
|
|
|
|
categories graphics
|
|
maintainers nomaintainer
|
|
license GPL-3
|
|
description A GUI to produce PDFs or DjVus from scanned documents
|
|
long_description ${description}
|
|
|
|
homepage http://gscan2pdf.sourceforge.net
|
|
master_sites sourceforge:project/${name}/${name}/${version}/
|
|
use_xz yes
|
|
|
|
checksums rmd160 cd8f0929ad4947fe8bff187254eda1372fdd5f0f \
|
|
sha256 346cfa0d46bb4dd0a1a60c260fda5c19dbd8af747e16dde33cf489a726c25b84 \
|
|
size 507244
|
|
|
|
perl5.major 5.34
|
|
|
|
depends_lib port:ImageMagick \
|
|
path:lib/pkgconfig/librsvg-2.0.pc:librsvg \
|
|
port:p${perl5.major}-config-general \
|
|
port:p${perl5.major}-data-uuid \
|
|
port:p${perl5.major}-date-calc \
|
|
port:p${perl5.major}-filesys-df \
|
|
port:p${perl5.major}-goocanvas2 \
|
|
port:p${perl5.major}-gtk3 \
|
|
port:p${perl5.major}-gtk3-imageview \
|
|
port:p${perl5.major}-gtk3-simplelist \
|
|
port:p${perl5.major}-image-sane \
|
|
port:p${perl5.major}-ipc-system-simple \
|
|
port:p${perl5.major}-list-moreutils \
|
|
port:p${perl5.major}-locale-gettext \
|
|
port:p${perl5.major}-locale-codes \
|
|
port:p${perl5.major}-log-log4perl \
|
|
port:p${perl5.major}-pdf-builder \
|
|
port:p${perl5.major}-perlmagick \
|
|
port:p${perl5.major}-proc-processtable \
|
|
port:p${perl5.major}-readonly \
|
|
port:p${perl5.major}-set-intspan \
|
|
port:p${perl5.major}-sub-override \
|
|
port:p${perl5.major}-try-tiny \
|
|
port:sane-backends \
|
|
port:tiff \
|
|
|
|
configure.cmd ${perl5.bin}
|
|
configure.pre_args Makefile.PL --prefix=${prefix}
|
|
|
|
post-destroot {
|
|
ln -s ${prefix}/libexec/perl${perl5.major}/sitebin/gscan2pdf \
|
|
${destroot}${prefix}/bin/
|
|
file delete ${destroot}${prefix}/lib/perl5/${perl5.major}/darwin-thread-multi-2level/perllocal.pod
|
|
}
|
|
|
|
post-patch {
|
|
# Can be removed once https://sourceforge.net/p/gscan2pdf/bugs/398/ is fixed
|
|
reinplace "s,/usr,${prefix}," ${worksrcpath}/bin/gscan2pdf
|
|
}
|
|
|
|
notes "
|
|
gscan2pdf can also use any of these optional packages you may install:
|
|
- sane-frontends (for scanadf frontend)
|
|
- djvulibre (for djvu format support)
|
|
- any of tesseract, gocr, cuneiform (for OCR)
|
|
- pdftk (for encrypted PDF)
|
|
- unpaper (post-processing tool for scanned pages)
|
|
- xdg-utils (to send Pdf per e-mail)
|
|
"
|