# -*- 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 # $Id$ PortSystem 1.0 PortGroup github 1.0 PortGroup cmake 1.0 PortGroup qt4 1.0 github.setup scantailor scantailor 0_9_12_2 RELEASE_ version 0.9.12.2 platforms darwin maintainers raphael openmaintainer license GPL-3+ categories graphics aqua description An interactive post-processing tool for scanned pages homepage http://scantailor.org/ long_description Scan Tailor is an interactive post-processing tool for scanned \ pages. It performs operations such as page splitting, deskewing, \ adding/removing borders, and others. You give it raw scans, and \ you get pages ready to be printed or assembled into a PDF or \ DJVU file. Scanning, optical character recognition, and \ assembling multi-page documents are out of scope of this project. depends_lib-append port:jpeg \ port:zlib \ port:libpng \ port:tiff \ port:boost \ port:xrender checksums rmd160 aaa4f74933966ad409b3eda8e2356cb093353eaa \ sha256 2ceace773af4770f1cc753a8ba21e875db1ec17c3ffd98efbf48aefee3ef417d post-patch { reinplace "s|@VERSION@|${version}|" ${worksrcpath}/packaging/osx/Info.plist.in } cmake.out_of_source yes configure.args-append ${qt_cmake_defines} post-destroot { # create application bundle set appdir ${destroot}${applications_dir}/ScanTailor.app xinstall -d ${appdir}/Contents/MacOS xinstall -m 644 ${worksrcpath}/packaging/osx/Info.plist.in ${appdir}/Contents/Info.plist move ${destroot}${prefix}/bin/scantailor ${appdir}/Contents/MacOS/ScanTailor xinstall -d ${appdir}/Contents/Resources xinstall -m 644 ${worksrcpath}/packaging/osx/ScanTailor.icns ${appdir}/Contents/Resources/ eval move [glob ${destroot}${prefix}/share/scantailor/translations/scantailor_*.qm] \ ${appdir}/Contents/Resources/ # install additional documentation files set docdir ${destroot}${prefix}/share/doc/${name} xinstall -d ${docdir} xinstall -m 644 -W ${worksrcpath} \ COPYING \ GPL3.txt \ ${docdir} }