1 |
jlec 12/08/31 14:17:26 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: scribus-1.4.1-r1.ebuild |
5 |
Log: |
6 |
app-office/scribus: Fix installation of LINGUAS dependened content and installation of templates/examples, #416767 |
7 |
|
8 |
(Portage version: 2.2.0_alpha123/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.164 app-office/scribus/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/scribus/ChangeLog?rev=1.164&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/scribus/ChangeLog?rev=1.164&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/scribus/ChangeLog?r1=1.163&r2=1.164 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-office/scribus/ChangeLog,v |
20 |
retrieving revision 1.163 |
21 |
retrieving revision 1.164 |
22 |
diff -u -r1.163 -r1.164 |
23 |
--- ChangeLog 6 Aug 2012 12:12:34 -0000 1.163 |
24 |
+++ ChangeLog 31 Aug 2012 14:17:26 -0000 1.164 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-office/scribus |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/ChangeLog,v 1.163 2012/08/06 12:12:34 jlec Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/ChangeLog,v 1.164 2012/08/31 14:17:26 jlec Exp $ |
30 |
+ |
31 |
+*scribus-1.4.1-r1 (31 Aug 2012) |
32 |
+ |
33 |
+ 31 Aug 2012; Justin Lecher <jlec@g.o> +scribus-1.4.1-r1.ebuild: |
34 |
+ Fix installation of LINGUAS dependened content and installation of |
35 |
+ templates/examples, #416767 |
36 |
|
37 |
06 Aug 2012; Justin Lecher <jlec@g.o> scribus-9999.ebuild: |
38 |
Add missing dependency on x11-libs/qt-webkit to live ebuild, thanks John |
39 |
|
40 |
|
41 |
|
42 |
1.1 app-office/scribus/scribus-1.4.1-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/scribus/scribus-1.4.1-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/scribus/scribus-1.4.1-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: scribus-1.4.1-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-1.4.1-r1.ebuild,v 1.1 2012/08/31 14:17:26 jlec Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
|
55 |
PYTHON_DEPEND="2" |
56 |
|
57 |
inherit cmake-utils fdo-mime multilib python |
58 |
|
59 |
DESCRIPTION="Desktop publishing (DTP) and layout program" |
60 |
HOMEPAGE="http://www.scribus.net/" |
61 |
SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.xz" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
66 |
IUSE="cairo debug examples +minimal +pdf spell templates" |
67 |
|
68 |
# a=$(ls resources/translations/po/scribus.*ts | sed -e 's:\.: :g' | awk '{print $2}'); echo ${a} |
69 |
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" |
70 |
IUSE+=" ${IUSE_LINGUAS// / linguas_}" |
71 |
|
72 |
COMMON_DEPEND=" |
73 |
dev-libs/hyphen |
74 |
dev-libs/libxml2 |
75 |
media-libs/fontconfig |
76 |
media-libs/freetype:2 |
77 |
media-libs/lcms:2 |
78 |
media-libs/libpng:0 |
79 |
media-libs/tiff:0 |
80 |
net-print/cups |
81 |
sys-libs/zlib[minizip] |
82 |
x11-libs/qt-core:4 |
83 |
x11-libs/qt-gui:4 |
84 |
virtual/jpeg |
85 |
spell? ( app-text/aspell ) |
86 |
pdf? ( app-text/podofo ) |
87 |
cairo? ( x11-libs/cairo[X,svg] )" |
88 |
RDEPEND="${COMMON_DEPEND} |
89 |
app-text/ghostscript-gpl" |
90 |
DEPEND="${COMMON_DEPEND} |
91 |
dev-libs/boost" |
92 |
|
93 |
S="${WORKDIR}"/Scribus |
94 |
|
95 |
PATCHES=( |
96 |
"${FILESDIR}"/${PN}-1.4.0_rc5-docs.patch |
97 |
# "${FILESDIR}"/${P}-export.patch |
98 |
"${FILESDIR}"/${PN}-1.4.0-minizip.patch |
99 |
) |
100 |
|
101 |
pkg_setup() { |
102 |
python_set_active_version 2 |
103 |
python_pkg_setup |
104 |
} |
105 |
|
106 |
src_prepare() { |
107 |
cat > cmake/modules/FindZLIB.cmake <<- EOF |
108 |
find_package(PkgConfig) |
109 |
pkg_check_modules(ZLIB minizip zlib) |
110 |
SET( ZLIB_LIBRARY \${ZLIB_LIBRARIES} ) |
111 |
SET( ZLIB_INCLUDE_DIR \${ZLIB_INCLUDE_DIRS} ) |
112 |
MARK_AS_ADVANCED( ZLIB_LIBRARY ZLIB_INCLUDE_DIR ) |
113 |
EOF |
114 |
|
115 |
rm scribus/{ioapi,unzip}.[ch] || die |
116 |
|
117 |
if ! use templates; then |
118 |
sed '/ADD_SUBDIRECTORY(resources\/templates)/d' -i CMakeLists.txt || die |
119 |
fi |
120 |
if ! use examples; then |
121 |
sed '/ADD_SUBDIRECTORY(samples)/d' -i scribus/plugins/scriptplugin/CMakeLists.txt || die |
122 |
fi |
123 |
|
124 |
base_src_prepare |
125 |
} |
126 |
|
127 |
src_configure() { |
128 |
local lang langs |
129 |
for lang in ${IUSE_LINGUAS}; do |
130 |
use linguas_${lang} && langs+=",${lang}" |
131 |
done |
132 |
|
133 |
local mycmakeargs=( |
134 |
-DHAVE_PYTHON=ON |
135 |
-DPYTHON_INCLUDE_PATH=$(python_get_includedir) |
136 |
-DPYTHON_LIBRARY=$(python_get_library) |
137 |
-DWANT_NORPATH=ON |
138 |
-DWANT_QTARTHUR=ON |
139 |
-DWANT_QT3SUPPORT=OFF |
140 |
-DGENTOOVERSION=${PVR} |
141 |
-DWANT_GUI_LANG=${langs#,} |
142 |
$(cmake-utils_use_has spell ASPELL) |
143 |
$(cmake-utils_use_has pdf PODOFO) |
144 |
$(cmake-utils_use_want cairo) |
145 |
$(cmake-utils_use_want minimal NOHEADERINSTALL) |
146 |
$(cmake-utils_use_want debug DEBUG) |
147 |
) |
148 |
cmake-utils_src_configure |
149 |
} |
150 |
|
151 |
src_install() { |
152 |
cmake-utils_src_install |
153 |
|
154 |
mv "${ED}"/usr/share/doc/${PF}/{en,html} || die |
155 |
ln -sf html "${ED}"/usr/share/doc/${PF}/en || die |
156 |
use linguas_de || rm -rf "${ED}"/usr/share/doc/${PF}/de |
157 |
use linguas_it || rm -rf "${ED}"/usr/share/doc/${PF}/it |
158 |
docompress -x /usr/share/doc/${PF}/en |
159 |
doicon resources/icons/scribus.png |
160 |
domenu scribus.desktop |
161 |
} |
162 |
|
163 |
pkg_preinst() { |
164 |
# 399595 |
165 |
rm -vf "${ED}"/usr/share/doc/${PF}/en* || die |
166 |
ln -sf html "${ED}"/usr/share/doc/${PF}/en |
167 |
} |
168 |
|
169 |
pkg_postinst() { |
170 |
fdo-mime_mime_database_update |
171 |
} |
172 |
|
173 |
pkg_postrm() { |
174 |
fdo-mime_mime_database_update |
175 |
} |