1 |
commit: 1ab2ef6578a5f857c7f1426f2cabf9938d3eda5c |
2 |
Author: Michael Weber <xmw <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 3 08:14:50 2016 +0000 |
4 |
Commit: Michael Weber <xmw <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 3 08:15:01 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ab2ef65 |
7 |
|
8 |
app-office/scribus: Version bump (bug 576018). |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
app-office/scribus/Manifest | 1 + |
13 |
app-office/scribus/scribus-1.5.1.ebuild | 200 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 201 insertions(+) |
15 |
|
16 |
diff --git a/app-office/scribus/Manifest b/app-office/scribus/Manifest |
17 |
index a05535c..3adeae8 100644 |
18 |
--- a/app-office/scribus/Manifest |
19 |
+++ b/app-office/scribus/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST scribus-1.4.5.tar.bz2 78251228 SHA256 9f706f0561d26bb11bbe558690ae0507cd3689e381f6e17aa9411d9c4ef58498 SHA512 60db402b0fc4880f795694f3d6823ff2cedd660e7431c311ec7b75d79f09815e790da562c4cd4c080811559d1c16a3e65be8e1a348f655dbc37c3a6cec74650e WHIRLPOOL f53273810ae2b7aa35403d6e622fb0ebb67f35d454aa4667dbbe81efe5fb2de3564d346741b80c5bed33a307e8c58fe7ba695900e45f602b3a14db1cae82d948 |
22 |
DIST scribus-1.4.6.tar.xz 73601104 SHA256 21e336500d9edc9c90ccf73087e5ef3df59ec3e4a3cbfec15367bcd8d078a19a SHA512 74d8a89eb767535bcd8fe5e3c55d03709d59ff8fc5280005bcc2ad36cae1d37c8442ab85abaea86fdee9f351a901c86947231001324e2d8df00cbd8e5c18d1e3 WHIRLPOOL 5c2ee366cb53720b35ffec2f7e2db244105a95ed7b14c27cf4fab7636cbdf10c6a370c0a14f65f630cd8252b22a4a3ec4b5e592c71308f78269205a89ae56fb7 |
23 |
DIST scribus-1.5.0.tar.xz 75867348 SHA256 a3dbe66d12719355d41ae7f2cac7a8c9d5599b12aeb5c038d939636f054e8e68 SHA512 3d3f311543019cf985e12d25d0a9bd2ea470679aee0f40d0aed4d2f1532ea3cdbd4d2e215e59b559b4301613fb71f738a348c56d09d3c6e32da0047d9e212065 WHIRLPOOL feae71d139724b4927c81cab5d13168a9e00383f9a7890484cf5ab62f001b266b4af954440bc7edc51eedb65c3ace4541a7fc0836b0f6237061d6d38371ac6ca |
24 |
+DIST scribus-1.5.1.tar.xz 78032792 SHA256 1882e68713d91c2ab9d6ec7a251dbbe31a4438ee68e63e62d36770541e6f4a38 SHA512 36de951c5aa190f49486971cb08223a4de85ba256a89c2df4ab0fcaba16480065faf499306efa669c623a36a59fbe09aec0c0572b55ce3f9e4107bb54df9c443 WHIRLPOOL c081db19cb39968577f5af9224a87bb2d44caf322b2860c0e3ec9bd32142d6e5f0c1c998c87ee501a3de98f9311c7b543fdef880773bed2cfd290d03a877c9a9 |
25 |
|
26 |
diff --git a/app-office/scribus/scribus-1.5.1.ebuild b/app-office/scribus/scribus-1.5.1.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..b9563b0 |
29 |
--- /dev/null |
30 |
+++ b/app-office/scribus/scribus-1.5.1.ebuild |
31 |
@@ -0,0 +1,200 @@ |
32 |
+# Copyright 1999-2015 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 ) |
39 |
+PYTHON_REQ_USE="tk?" |
40 |
+ |
41 |
+inherit cmake-utils fdo-mime flag-o-matic multilib python-single-r1 |
42 |
+ |
43 |
+DESCRIPTION="Desktop publishing (DTP) and layout program" |
44 |
+HOMEPAGE="http://www.scribus.net/" |
45 |
+SRC_URI="mirror://sourceforge/project/${PN}/${PN}-devel/${PV}/${P}.tar.xz" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+IUSE="+boost debug examples graphicsmagick hunspell +minimal osg +pdf scripts templates tk" |
51 |
+ |
52 |
+#a=$((ls resources/translations/scribus.*ts | sed -e 's:\.: :g' | awk '{print $2}'; ls resources/loremipsum/*xml | sed -e 's:\.: :g' -e 's:loremipsum\/: :g'| awk '{print $2}'; ls resources/dicts/hyph*dic | sed -e 's:\.: :g' -e 's:hyph_: :g' | awk '{print $2}'; ls resources/dicts/README_*txt | sed -e 's:_hyph::g' -e 's:\.: :g' -e 's:README_: :g' | awk '{print $2}') | sort | uniq); echo $a |
53 |
+IUSE_LINGUAS=" af ar bg br ca ca_ES cs cs_CZ cy cy_GB da da_DK de de_1901 de_CH de_DE el en_AU en_EN en_GB en_US eo es es_ES et eu fi fi_FI fr gl he hr hu hu_HU ia id id_ID is is_IS it ja ko ku la lt lt_LT nb_NO nl nn_NO pl pl_PL pt pt_BR pt_PT ro ro_RO ru ru_RU_0 sa sk sk_SK sl sl_SI sq sr sv sv_SE th_TH tr uk uk_UA zh_CN zh_TW" |
54 |
+IUSE+=" ${IUSE_LINGUAS// / linguas_}" |
55 |
+ |
56 |
+REQUIRED_USE=" |
57 |
+ ${PYTHON_REQUIRED_USE} |
58 |
+ tk? ( scripts )" |
59 |
+ |
60 |
+# osg |
61 |
+# couple of third_party libs bundled |
62 |
+COMMON_DEPEND=" |
63 |
+ ${PYTHON_DEPS} |
64 |
+ app-text/libmspub |
65 |
+ >=app-text/poppler-0.19.0:= |
66 |
+ dev-libs/boost |
67 |
+ dev-libs/hyphen |
68 |
+ dev-libs/librevenge |
69 |
+ dev-libs/libxml2 |
70 |
+ dev-qt/qtcore:5 |
71 |
+ dev-qt/qtgui:5 |
72 |
+ dev-qt/qtnetwork:5 |
73 |
+ dev-qt/qtopengl:5 |
74 |
+ dev-qt/qtprintsupport:5 |
75 |
+ dev-qt/qtquickcontrols:5 |
76 |
+ dev-qt/qtwebkit:5 |
77 |
+ dev-qt/qtwidgets:5 |
78 |
+ dev-qt/qtxml:5 |
79 |
+ media-libs/fontconfig |
80 |
+ media-libs/freetype:2 |
81 |
+ media-libs/lcms:2 |
82 |
+ media-libs/libcdr |
83 |
+ media-libs/libpagemaker |
84 |
+ media-libs/libpng:0 |
85 |
+ media-libs/libvisio |
86 |
+ media-libs/tiff:0 |
87 |
+ net-print/cups |
88 |
+ sys-libs/zlib[minizip] |
89 |
+ virtual/jpeg:0= |
90 |
+ >=x11-libs/cairo-1.10.0[X,svg] |
91 |
+ boost? ( dev-libs/boost ) |
92 |
+ hunspell? ( app-text/hunspell ) |
93 |
+ graphicsmagick? ( media-gfx/graphicsmagick ) |
94 |
+ osg? ( dev-games/openscenegraph ) |
95 |
+ pdf? ( app-text/podofo:0= ) |
96 |
+ scripts? ( dev-python/pillow[tk?,${PYTHON_USEDEP}] ) |
97 |
+ tk? ( dev-python/pillow[tk?,${PYTHON_USEDEP}] ) |
98 |
+" |
99 |
+RDEPEND="${COMMON_DEPEND} |
100 |
+ app-text/ghostscript-gpl" |
101 |
+DEPEND="${COMMON_DEPEND} |
102 |
+ dev-qt/linguist-tools:5 |
103 |
+ virtual/pkgconfig" |
104 |
+ |
105 |
+PATCHES=( |
106 |
+ "${FILESDIR}"/${PN}-1.5.0-docdir.patch |
107 |
+ "${FILESDIR}"/${PN}-1.5.0-QObject.patch |
108 |
+ ) |
109 |
+ |
110 |
+src_prepare() { |
111 |
+ rm -r codegen/cheetah || die |
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 |
+ sed \ |
121 |
+ -e "/^\s*unzip\.[ch]/d" \ |
122 |
+ -e "/^\s*ioapi\.[ch]/d" \ |
123 |
+ -i scribus/CMakeLists.txt Scribus.pro || die |
124 |
+ rm scribus/ioapi.[ch] || die |
125 |
+ |
126 |
+ sed \ |
127 |
+ -e 's:\(${CMAKE_INSTALL_PREFIX}\):./\1:g' \ |
128 |
+ -i resources/templates/CMakeLists.txt || die |
129 |
+ |
130 |
+ cmake-utils_src_prepare |
131 |
+} |
132 |
+ |
133 |
+src_configure() { |
134 |
+ local lang langs |
135 |
+ for lang in ${IUSE_LINGUAS}; do |
136 |
+ if use linguas_${lang} || [[ ${lang} == "en" ]]; then |
137 |
+ # From the CMakeLists.txt |
138 |
+ # "#Bit of a hack, preprocess all the filenames to generate our language string, needed for -DWANT_GUI_LANG=en_GB;de_DE , etc" |
139 |
+ langs+=";${lang}" |
140 |
+ else |
141 |
+ # Don't install localized documentation |
142 |
+ sed -e "/${lang}/d" -i doc/CMakeLists.txt || die |
143 |
+ safe_delete file ./resources/dicts/README_${lang}.txt |
144 |
+ safe_delete file ./resources/dicts/README_hyph_${lang}.txt |
145 |
+ safe_delete file ./resources/dicts/hyph_${lang}.dic |
146 |
+ safe_delete file ./resources/loremipsum/${lang}.xml |
147 |
+ fi |
148 |
+ done |
149 |
+ |
150 |
+ local mycmakeargs=( |
151 |
+ -DHAVE_PYTHON=ON |
152 |
+ -DPYTHON_INCLUDE_PATH="$(python_get_includedir)" |
153 |
+ -DPYTHON_LIBRARY="$(python_get_library_path)" |
154 |
+ -DWANT_DISTROBUILD=ON |
155 |
+ -DDOCDIR="/usr/share/doc/${PF}/" |
156 |
+ -DWANT_GUI_LANG="${langs#;};en" |
157 |
+ $(cmake-utils_use_with pdf PODOFO) |
158 |
+ $(cmake-utils_use_with boost) |
159 |
+ $(cmake-utils_use_want graphicsmagick) |
160 |
+ $(cmake-utils_use !osg WANT_NOOSG) |
161 |
+ $(cmake-utils_use_want debug DEBUG) |
162 |
+ $(cmake-utils_use_want minimal NOHEADERINSTALL) |
163 |
+ $(cmake-utils_use_want hunspell HUNSPELL) |
164 |
+ $(cmake-utils_use_want !examples NOEXAMPLES) |
165 |
+ $(cmake-utils_use_want !templates NOTEMPLATES) |
166 |
+ ) |
167 |
+ cmake-utils_src_configure |
168 |
+} |
169 |
+ |
170 |
+src_install() { |
171 |
+ cmake-utils_src_install |
172 |
+ |
173 |
+ local lang |
174 |
+ for lang in ${IUSE_LINGUAS}; do |
175 |
+ if ! use linguas_${lang}; then |
176 |
+ safe_delete dir "${ED}"/usr/share/man/${lang} |
177 |
+ fi |
178 |
+ done |
179 |
+ |
180 |
+ if ! use scripts; then |
181 |
+ rm "${ED}"/usr/share/scribus/scripts/*.py || die |
182 |
+ elif ! use tk; then |
183 |
+ rm "${ED}"/usr/share/scribus/scripts/{FontSample,CalendarWizard}.py || die |
184 |
+ fi |
185 |
+ |
186 |
+ use scripts && \ |
187 |
+ python_fix_shebang "${ED}"/usr/share/scribus/scripts && \ |
188 |
+ python_optimize "${ED}"/usr/share/scribus/scripts |
189 |
+ |
190 |
+ mv "${ED}"/usr/share/doc/${PF}/{en,html} || die |
191 |
+ ln -sf html "${ED}"/usr/share/doc/${PF}/en || die |
192 |
+ cat >> "${T}"/COPYING <<- EOF |
193 |
+ ${PN} is licensed under the "${LICENSE}". |
194 |
+ Please visit https://www.gnu.org/licenses/gpl-2.0.html for the complete license text. |
195 |
+ EOF |
196 |
+ dodoc "${T}"/COPYING |
197 |
+ docompress -x /usr/share/doc/${PF}/en /usr/share/doc/${PF}/{AUTHORS,TRANSLATION,LINKS,COPYING} |
198 |
+ doicon resources/iconsets/1_5_0/scribus.png |
199 |
+ domenu scribus.desktop |
200 |
+} |
201 |
+ |
202 |
+pkg_postinst() { |
203 |
+ fdo-mime_desktop_database_update |
204 |
+ fdo-mime_mime_database_update |
205 |
+} |
206 |
+ |
207 |
+pkg_postrm() { |
208 |
+ fdo-mime_desktop_database_update |
209 |
+ fdo-mime_mime_database_update |
210 |
+} |
211 |
+ |
212 |
+safe_delete () { |
213 |
+ case $1 in |
214 |
+ dir) |
215 |
+ if [[ -d "${2}" ]]; then |
216 |
+ ebegin "Deleting ${2} recursively" |
217 |
+ rm -r "${2}" || die |
218 |
+ eend $? |
219 |
+ fi |
220 |
+ ;; |
221 |
+ file) |
222 |
+ if [[ -f "${2}" ]]; then |
223 |
+ ebegin "Deleting ${2}" |
224 |
+ rm "${2}" || die |
225 |
+ eend $? |
226 |
+ fi |
227 |
+ ;; |
228 |
+ *) |
229 |
+ die "Wrong usage" |
230 |
+ esac |
231 |
+} |