1 |
jlec 14/06/02 07:12:17 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: scribus-1.4.4.ebuild |
5 |
Removed: scribus-1.4.2-r3.ebuild scribus-1.4.2-r2.ebuild |
6 |
Log: |
7 |
app-office/scribus: Version Bump, #511798; drop old |
8 |
|
9 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!) |
10 |
|
11 |
Revision Changes Path |
12 |
1.184 app-office/scribus/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/scribus/ChangeLog?rev=1.184&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/scribus/ChangeLog?rev=1.184&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/scribus/ChangeLog?r1=1.183&r2=1.184 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-office/scribus/ChangeLog,v |
21 |
retrieving revision 1.183 |
22 |
retrieving revision 1.184 |
23 |
diff -u -r1.183 -r1.184 |
24 |
--- ChangeLog 17 Sep 2013 15:58:17 -0000 1.183 |
25 |
+++ ChangeLog 2 Jun 2014 07:12:17 -0000 1.184 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for app-office/scribus |
28 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/ChangeLog,v 1.183 2013/09/17 15:58:17 jlec Exp $ |
30 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/ChangeLog,v 1.184 2014/06/02 07:12:17 jlec Exp $ |
32 |
+ |
33 |
+*scribus-1.4.4 (02 Jun 2014) |
34 |
+ |
35 |
+ 02 Jun 2014; Justin Lecher <jlec@g.o> -scribus-1.4.2-r2.ebuild, |
36 |
+ -scribus-1.4.2-r3.ebuild, +scribus-1.4.4.ebuild: |
37 |
+ Version Bump, #511798; drop old |
38 |
|
39 |
17 Sep 2013; Justin Lecher <jlec@g.o> scribus-1.4.3.ebuild, |
40 |
scribus-1.4.9999.ebuild, scribus-9999.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 app-office/scribus/scribus-1.4.4.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/scribus/scribus-1.4.4.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/scribus/scribus-1.4.4.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: scribus-1.4.4.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2014 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-1.4.4.ebuild,v 1.1 2014/06/02 07:12:17 jlec Exp $ |
54 |
|
55 |
EAPI=5 |
56 |
|
57 |
PYTHON_COMPAT=( python2_7 ) |
58 |
PYTHON_REQ_USE="tk?" |
59 |
|
60 |
inherit cmake-utils fdo-mime python-single-r1 |
61 |
|
62 |
DESCRIPTION="Desktop publishing (DTP) and layout program" |
63 |
HOMEPAGE="http://www.scribus.net/" |
64 |
SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.xz" |
65 |
|
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
69 |
IUSE="cairo debug examples hunspell +minimal +pdf scripts templates tk" |
70 |
|
71 |
# a=$(ls resources/translations/po/scribus.*ts | sed -e 's:\.: :g' | awk '{print $2}'); echo ${a} |
72 |
IUSE_LINGUAS=" af ar bg br ca cs_CZ cy da_DK de de_1901 de_CH 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 pt_BR ru sa sk_SK sl sq sr sv th_TH tr uk zh_CN zh_TW" |
73 |
IUSE+=" ${IUSE_LINGUAS// / linguas_}" |
74 |
|
75 |
REQUIRED_USE=" |
76 |
${PYTHON_REQUIRED_USE} |
77 |
tk? ( scripts )" |
78 |
|
79 |
COMMON_DEPEND=" |
80 |
${PYTHON_DEPS} |
81 |
dev-libs/boost |
82 |
dev-libs/hyphen |
83 |
dev-libs/libxml2 |
84 |
dev-qt/qtcore:4 |
85 |
dev-qt/qtgui:4 |
86 |
media-libs/fontconfig |
87 |
media-libs/freetype:2 |
88 |
media-libs/lcms:2 |
89 |
media-libs/libpng:0 |
90 |
media-libs/tiff:0 |
91 |
net-print/cups |
92 |
sys-libs/zlib[minizip] |
93 |
virtual/jpeg |
94 |
cairo? ( x11-libs/cairo[X,svg] ) |
95 |
!cairo? ( media-libs/libart_lgpl ) |
96 |
hunspell? ( app-text/hunspell ) |
97 |
pdf? ( app-text/podofo ) |
98 |
scripts? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] ) |
99 |
tk? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] ) |
100 |
" |
101 |
RDEPEND="${COMMON_DEPEND} |
102 |
app-text/ghostscript-gpl" |
103 |
DEPEND="${COMMON_DEPEND} |
104 |
virtual/pkgconfig" |
105 |
|
106 |
PATCHES=( |
107 |
"${FILESDIR}"/${PN}-1.4.2-docs.patch |
108 |
"${FILESDIR}"/${PN}-1.4.0-minizip.patch |
109 |
) |
110 |
|
111 |
src_prepare() { |
112 |
cat > cmake/modules/FindZLIB.cmake <<- EOF |
113 |
find_package(PkgConfig) |
114 |
pkg_check_modules(ZLIB minizip zlib) |
115 |
SET( ZLIB_LIBRARY \${ZLIB_LIBRARIES} ) |
116 |
SET( ZLIB_INCLUDE_DIR \${ZLIB_INCLUDE_DIRS} ) |
117 |
MARK_AS_ADVANCED( ZLIB_LIBRARY ZLIB_INCLUDE_DIR ) |
118 |
EOF |
119 |
|
120 |
rm scribus/{ioapi,unzip}.[ch] || die |
121 |
|
122 |
sed \ |
123 |
-e 's:\(${CMAKE_INSTALL_PREFIX}\):./\1:g' \ |
124 |
-i resources/templates/CMakeLists.txt || die |
125 |
|
126 |
cmake-utils_src_prepare |
127 |
} |
128 |
|
129 |
src_configure() { |
130 |
local lang langs |
131 |
for lang in ${IUSE_LINGUAS}; do |
132 |
if use linguas_${lang}; then |
133 |
langs+=",${lang}" |
134 |
else |
135 |
sed -e "/${lang}/d" -i scribus/doc/CMakeLists.txt || die |
136 |
fi |
137 |
done |
138 |
|
139 |
local mycmakeargs=( |
140 |
-DHAVE_PYTHON=ON |
141 |
-DPYTHON_INCLUDE_PATH="$(python_get_includedir)" |
142 |
-DPYTHON_LIBRARY="$(python_get_library_path)" |
143 |
-DWANT_NORPATH=ON |
144 |
-DWANT_QT3SUPPORT=OFF |
145 |
-DGENTOOVERSION=${PVR} |
146 |
-DWANT_GUI_LANG=${langs#,} |
147 |
$(cmake-utils_use_with pdf PODOFO) |
148 |
$(cmake-utils_use_want cairo) |
149 |
$(cmake-utils_use_want !cairo QTARTHUR) |
150 |
$(cmake-utils_use_want debug DEBUG) |
151 |
$(cmake-utils_use_want minimal NOHEADERINSTALL) |
152 |
$(cmake-utils_use_want hunspell HUNSPELL) |
153 |
$(cmake-utils_use_want !examples NOEXAMPLES) |
154 |
$(cmake-utils_use_want !templates NOTEMPLATES) |
155 |
) |
156 |
cmake-utils_src_configure |
157 |
} |
158 |
|
159 |
src_install() { |
160 |
cmake-utils_src_install |
161 |
|
162 |
local lang file |
163 |
for lang in ${IUSE_LINGUAS}; do |
164 |
file="${ED}"/usr/share/scribus/translations/scribus.${lang}.qm |
165 |
if ! use linguas_${lang} && [[ -f "${file}" ]]; then |
166 |
rm "${file}" || die |
167 |
fi |
168 |
done |
169 |
|
170 |
if ! use scripts; then |
171 |
rm "${ED}"/usr/share/scribus/scripts/*.py || die |
172 |
elif ! use tk; then |
173 |
rm "${ED}"/usr/share/scribus/scripts/{FontSample,CalendarWizard}.py || die |
174 |
fi |
175 |
|
176 |
python_fix_shebang "${ED}"/usr/share/scribus/scripts |
177 |
python_optimize "${ED}"/usr/share/scribus/scripts |
178 |
|
179 |
mv "${ED}"/usr/share/doc/${PF}/{en,html} || die |
180 |
ln -sf html "${ED}"/usr/share/doc/${PF}/en || die |
181 |
docompress -x /usr/share/doc/${PF}/en |
182 |
doicon resources/icons/scribus.png |
183 |
domenu scribus.desktop |
184 |
} |
185 |
|
186 |
pkg_postinst() { |
187 |
fdo-mime_desktop_database_update |
188 |
fdo-mime_mime_database_update |
189 |
} |
190 |
|
191 |
pkg_postrm() { |
192 |
fdo-mime_desktop_database_update |
193 |
fdo-mime_mime_database_update |
194 |
} |