/[gentoo-x86]/app-office/scribus/scribus-9999.ebuild
Gentoo

Contents of /app-office/scribus/scribus-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Aug 6 12:12:34 2012 UTC (2 years, 1 month ago) by jlec
Branch: MAIN
Changes since 1.2: +2 -1 lines
app-office/scribus: Add missing dependency on x11-libs/qt-webkit to live ebuild, thanks John Laurence Poole for the notification

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-9999.ebuild,v 1.2 2012/06/07 18:01:49 jlec Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="2"
8
9 inherit cmake-utils fdo-mime multilib python subversion
10
11 DESCRIPTION="Desktop publishing (DTP) and layout program"
12 HOMEPAGE="http://www.scribus.net/"
13 #SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
14 SRC_URI=""
15 ESVN_REPO_URI="svn://scribus.net/trunk/Scribus"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS=""
20 IUSE="cairo debug examples +minimal +pdf spell templates"
21
22 # a=$(ls resources/translations/po/scribus.*ts | sed -e 's:\.: :g' | awk '{print $2}'); echo ${a}
23 IUSE_LINGUAS=" af ar bg br ca cs_CZ cy da_DK de_1901 de_CH de el en_AU en_GB en_US es_ES et eu fi fr gl hu id it ja ko lt_LT nb_NO nl pl_PL pt_BR pt ru sa sk_SK sl sq sr sv th_TH tr uk zh_CN zh_TW"
24 IUSE+=" ${IUSE_LINGUAS// / linguas_}"
25
26 COMMON_DEPEND="
27 dev-libs/hyphen
28 dev-libs/libxml2
29 media-libs/fontconfig
30 media-libs/freetype:2
31 media-libs/lcms:2
32 media-libs/libpng:0
33 media-libs/tiff:0
34 net-print/cups
35 sys-libs/zlib
36 x11-libs/qt-core:4
37 x11-libs/qt-gui:4
38 x11-libs/qt-webkit:4
39 virtual/jpeg
40 spell? ( app-text/aspell )
41 pdf? ( app-text/podofo )
42 cairo? ( x11-libs/cairo[X,svg] )"
43 RDEPEND="${COMMON_DEPEND}
44 app-text/ghostscript-gpl"
45 DEPEND="${COMMON_DEPEND}
46 dev-libs/boost"
47
48 PATCHES=(
49 "${FILESDIR}"/${PN}-1.5.0-docs.patch
50 )
51
52 pkg_setup() {
53 python_set_active_version 2
54 python_pkg_setup
55 }
56
57 src_prepare() {
58 if use templates; then
59 sed '/ADD_SUBDIRECTORY(resources\/templates)/d' -i CMakeLists.txt || die
60 fi
61 if use examples; then
62 sed '/ADD_SUBDIRECTORY(samples)/d' -i scribus/plugins/scriptplugin/CMakeLists.txt || die
63 fi
64
65 sed \
66 -e '1i#define OF(x) x' \
67 -i scribus/fileunzip.cpp scribus/unzip.h scribus/ioapi.h || die
68
69 base_src_prepare
70 subversion_src_prepare
71 }
72
73 src_configure() {
74 local lang langs
75 for lang in ${IUSE_LINGUAS}; do
76 use linguas_${lang} && langs+=",${lang}"
77 done
78
79 local mycmakeargs=(
80 -DHAVE_PYTHON=ON
81 -DPYTHON_INCLUDE_PATH=$(python_get_includedir)
82 -DPYTHON_LIBRARY=$(python_get_library)
83 -DWANT_NORPATH=ON
84 -DWANT_QTARTHUR=ON
85 -DWANT_QT3SUPPORT=OFF
86 -DGENTOOVERSION=${PVR}
87 -DWANT_GUI_LANG=${langs#,}
88 $(cmake-utils_use_has spell ASPELL)
89 $(cmake-utils_use_has pdf PODOFO)
90 $(cmake-utils_use_want cairo)
91 $(cmake-utils_use_want minimal NOHEADERINSTALL)
92 $(cmake-utils_use_want debug DEBUG)
93 )
94 cmake-utils_src_configure
95 }
96
97 src_install() {
98 cmake-utils_src_install
99
100 mv "${ED}"/usr/share/doc/${PF}/{en,html} || die
101 ln -sf html "${ED}"/usr/share/doc/${PF}/en || die
102 docompress -x /usr/share/doc/${PF}/en
103 doicon resources/icons/scribus.png
104 domenu scribus.desktop
105 }
106
107 pkg_preinst() {
108 # 399595
109 rm -vf "${ED}"/usr/share/doc/${PF}/en* || die
110 ln -sf html "${ED}"/usr/share/doc/${PF}/en
111 subversion_pkg_preinst
112 }
113
114 pkg_postinst() {
115 fdo-mime_mime_database_update
116 }
117
118 pkg_postrm() {
119 fdo-mime_mime_database_update
120 }

  ViewVC Help
Powered by ViewVC 1.1.20