scribus-aqua stable port information

Package: scribus-aqua
Version: 1.4.1
Revision: 1
Epoch: 1
Source: mirror:sourceforge:scribus/scribus-%v.tar.bz2
Source-MD5: aa6b74528c295153ab3bda88c86ba0d6
SourceDirectory: Scribus
License: GPL
Recommends: x-ghostscript-fonts, msttcorefonts, applesystemfonts
Depends: <<
ghostscript,
qt4-base-mac-qtcore-shlibs,
qt4-base-mac-qtgui-shlibs,
qt4-base-mac-qtnetwork-shlibs,
qt4-base-mac-qtsql-shlibs,
qt4-base-mac-qtxml-shlibs,
libjpeg8-shlibs,
libjpeg-bin,
lcms-shlibs,
cairo-shlibs,
libpng15-shlibs,
libtiff-shlibs,
freetype219-shlibs,
libxml2-shlibs,
libiconv,
fontconfig2-shlibs,
podofo9-shlibs
<<
BuildDepends: <<
lcms,
libjpeg8,
qt4-base-mac,
cairo,
cups-dev,
libpng15,
libtiff,
freetype219,
libxml2,
libiconv-dev,
fontconfig2-dev,
expat1,
cmake,
podofo9-dev,
boost1.35.systempython,
glitz
<<
BuildConflicts: qt3, qt3-dev
Conflicts: scribus135-aqua (<<1.4.0-1)
Replaces: scribus135-aqua
PatchScript: <<
#!/bin/sh -ev
# Place all source tree include dirs before %p/include
perl -pi -e 's|\$\{CMAKE_BINARY_DIR\}/scribus|$&\n\$\{CMAKE_SOURCE_DIR\}/scribus|g' CMakeLists.txt
# improve finding of PIL in the FontSample script
perl -pi -e 's|import Image|from PIL $&|g' scribus/plugins/scriptplugin/scripts/FontSample.py
# voodoo for making this compile under clang
perl -pi.bak -e 's|Action_body\* body;|$&\n friend class Dummy;|' scribus/desaxe/actions.h
<<
CompileScript: <<
#!/bin/sh -ex
# Use Fink's freetype219, qt4-mac, fontconfig2,
# but Apple's Python framework
export PATH=%p/lib/freetype219/bin:$PATH
unset QMAKESPEC
export QTDIR=%p/lib/qt4-mac

mkdir build
cd build
cmake --debug-output -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DCMAKE_INSTALL_PREFIX:PATH=%p/Applications/Scribus.app/Contents \
-DFREETYPE_DIR:PATH=%p/lib/freetype219 \
-DFREETYPE_INCLUDE_DIR_ft2build:PATH=%p/lib/freetype219/include \
-DFREETYPE_INCLUDE_DIR_freetype2:PATH=%p/lib/freetype219/include/freetype2 \
-DFREETYPE_LIBRARY:FILEPATH=%p/lib/freetype219/lib/libfreetype.dylib \
-DFONTCONFIG_INCLUDE_DIR:PATH=%p/lib/fontconfig2/include \
-DFONTCONFIG_LIBRARY:FILEPATH=%p/lib/fontconfig2/lib/libfontconfig.dylib \
-DPYTHON_INCLUDE_DIRS:PATH=/System/Library/Frameworks/Python.framework/Headers \
-DPYTHON_LIBRARIES:FILEPATH="-framework Python" \
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING="" \
-DCMAKE_OSX_SYSROOT:PATH="/" \
..
make
<<
InstallScript: <<
#!/bin/sh -ex
mkdir -p %i/Applications
/bin/cp -p -R Scribus.app %i/Applications/
mkdir %i/Applications/Scribus.app/Contents/MacOS
cd build
make install DESTDIR=%d
/bin/cp /System/Library/ColorSync/Profiles/* %i/Applications/Scribus.app/Contents/lib/scribus/profiles/ || /usr/bin/true
# Scribus (or qt as used by Scribus) doesn't find the qt plugins for image export, needs a little help
ln -s %p/lib/qt4-mac/plugins %i/Applications/Scribus.app/Contents/lib/qtplugins
# Wrapper script; for now mainly useful if Fink's pil-systempython2X package is installed,
# because this will want PYTHONPATH="%p/Library/Python/2.X/site-packages"
mv %i/Applications/Scribus.app/Contents/MacOS/Scribus %i/Applications/Scribus.app/Contents/MacOS/Scribus.bin
ln -s scribus.sh %i/Applications/Scribus.app/Contents/MacOS/Scribus
cat > %i/Applications/Scribus.app/Contents/MacOS/scribus.sh << "EOF"
#!/bin/sh
source %p/bin/init.sh
exec %p/Applications/Scribus.app/Contents/MacOS/Scribus.bin "${@}"
EOF
chmod +x %i/Applications/Scribus.app/Contents/MacOS/scribus.sh
<<
DocFiles: AUTHORS COPYING ChangeLog ChangeLogCVS ChangeLogSVN PACKAGING README TRANSLATION
PostInstScript: <<
if ! test -e /Applications/Fink; then /usr/bin/install -d -m 755 /Applications/Fink; fi
ln -nfs %p/Applications/Scribus.app /Applications/Fink/
<<
PostRmScript: <<
if test -h /Applications/Fink/Scribus.app; then rm -f /Applications/Fink/Scribus.app; fi
<<
Description: Layout program (stable branch)
DescDetail: <<
Scribus is an open-source program that brings professional
page layout to Linux/Unix, MacOS X, OS/2 and Windows desktops
with a combination of "press-ready" output and new approaches
to page layout.

Underneath the modern and user friendly interface, Scribus
supports professional publishing features, such as CMYK color,
separations, ICC color management and versatile PDF creation.
<<
DescUsage: <<
This version does not need X11 for running.
It installs a double-clickable application (symbolic link)
"Scribus.app" in /Applications/Fink.

This version contains extensive online help.
Additional up-to-date documentation is on the Scribus web site.

If you want the Font-Sampler script run fully, with display of
the glyphs, you can install the
pil-systempython25 package (on 10.5 and 10.6)
or pil-systempython27 (on 10.7).

Fonts: Since X11 is not used, the X11 fonts are not automatically
recognized. You have to tell Scribus where to find fonts.
- Install the x-ghostscript-fonts or msttcorefonts or xfonts-intl
or applesystemfont packages.
(The gimp-sharefonts and similar packages work, too,
but these fonts are of rather bad quality)
- Put lines like
/Library/Fonts
/System/Library/Fonts
/sw/lib/X11/fonts/applettf
/sw/lib/X11/fonts/msttf
into your ~/.scribus/scribusfont140.rc file (create it if it doesn't exist)
This will give you many (not all) of the Apple system fonts.
If you use FontBook to create your own collections, put also
~/Library/Fonts
into this file.
<<
DescPort: <<
This is a native Aqua version of Scribus.

Uses fontconfig2-dev and freetype219 from Fink, not from X11,
and qt4-mac-free as packaged in the qt4-mac package.
<<
DescPackaging: <<
The new version 1.4.0 replaces both the old stable version 1.3.3.4
and the 135 development branch.
The package names are now scribus-x11 and scribus-aqua,
like variants, but they have separate info files, because there are too many
differences.
The new development branch is 1.5.0, and I may consider packaging it in
a future scribus-ng or scribus-devel package, if they start releasing tarballs.
<<
Maintainer: Martin Costabel
Homepage: http://www.scribus.net/