Skip to content

Commit

Permalink
scribus-devel: New port tracking dev branch
Browse files Browse the repository at this point in the history
Fixes https://trac.macports.org/ticket/52555 while leaving older version
available for older systems.
  • Loading branch information
eborisch committed Jun 1, 2018
1 parent 36cf75c commit 8a3b7a1
Showing 1 changed file with 88 additions and 0 deletions.
88 changes: 88 additions & 0 deletions print/scribus-devel/Portfile
@@ -0,0 +1,88 @@
# -*- 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 cmake 1.0
PortGroup qt5 1.0
name scribus-devel
version 1.5.4
categories print
license LGPL-2+ BSD MIT
platforms darwin
maintainers nomaintainer

# Scribus does not link to openssl
#license_noconflict openssl

description qt5-based WYSIWYG desktop publishing application

long_description Scribus is an open source desktop publishing program. It \
provides true WYSIWYG editing, excellent PDF export \
facilities, and a wide range of other input and output \
options. This port tracks the development branch, \
currently 1.5.x.

homepage http://www.scribus.net/
master_sites sourceforge:project/scribus/${name}/${version}/
distname scribus-${version}
use_7z yes

checksums \
rmd160 64af5755f7a2cc4bc7da157555cce9c5b3186732 \
sha256 c756037464cfc1f760ddad0cce5cc323d4091e65cd119dd1d69ad16be32b7d6c \
size 53538127

# Builds forever with llvm-gcc-4.2. https://trac.macports.org/ticket/30835
compiler.blacklist-append llvm-gcc-4.2

depends_build-append \
path:bin/perl:perl5 \
port:pkgconfig

depends_lib-append \
path:lib/pkgconfig/cairo.pc:cairo \
port:boost \
port:expat \
port:fontconfig \
port:ghostscript \
port:harfbuzz-icu \
port:hunspell \
port:lcms \
port:libart_lgpl \
port:libiconv \
port:libxml2 \
port:podofo \
port:poppler \
port:python27 \
port:qt5-qttools \
port:qt5-qttranslations \
port:tiff \
port:zlib

set PyFRM ${frameworks_dir}/Python.framework/Versions
configure.args-append \
-DCMAKE_INSTALL_PREFIX="${applications_dir}/[string toupper ${name} 0].app" \
-DWITH_PODOFO=YES \
-DWANT_DISTROBUILD=YES \
-DWITH_BOOST=YES \
-DWANT_GRAPHICSMAGICK=NO \
-DPYTHON_LIBRARY="${prefix}/lib/libpython2.7.dylib" \
-DPYTHON_INCLUDE_DIR="${PyFRM}/2.7/include/python2.7"

variant converters description {Extra file I/O filters} {
configure.args-delete -DWANT_GRAPHICSMAGICK=NO
configure.args-append -DWANT_GRAPHICSMAGICK=YES
depends_lib-append port:libcdr \
port:libfreehand \
port:libmspub \
port:libpagemaker \
port:libvisio-0.1 \
port:librevenge \
port:GraphicsMagick
}

cmake.out_of_source yes
build.env HOME=${worksrcpath}

# These can be uncommented to livecheck for the devel version
livecheck.url https://www.scribus.net/downloads/unstable-branch/
livecheck.regex /scribus-devel/(\[a-z0-9\]+(\\.\[a-z0-9\]+)+)/

0 comments on commit 8a3b7a1

Please sign in to comment.