Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/scribus/
Date: Sat, 06 Oct 2018 20:45:22
Message-Id: 1538858703.af46709f45c341bda83387568230b9a2ab7eb825.asturm@gentoo
1 commit: af46709f45c341bda83387568230b9a2ab7eb825
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 6 19:54:55 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 6 20:45:03 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af46709f
7
8 app-office/scribus: Drop 1.5.3-r1
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11 Package-Manager: Portage-2.3.50, Repoman-2.3.11
12
13 app-office/scribus/Manifest | 2 -
14 app-office/scribus/scribus-1.5.3-r1.ebuild | 250 -----------------------------
15 2 files changed, 252 deletions(-)
16
17 diff --git a/app-office/scribus/Manifest b/app-office/scribus/Manifest
18 index cbfcaf580cf..b9ba104e93f 100644
19 --- a/app-office/scribus/Manifest
20 +++ b/app-office/scribus/Manifest
21 @@ -1,4 +1,2 @@
22 -DIST scribus-1.5.3.patches.tar.xz 5332 BLAKE2B 3e7702da61a0698873175011115d86bc473a4d2d59be4bca894bbde41844029707dda7307f1d07033fde501da03097aed21dcf12991bb978df1156cb6654077a SHA512 aeb8142eca826a3f9cbd25e8e2276a352f24fe65241a2fe737fd26597419ad9a7180b337f77fb6ba6ac83f378b235d38b1eb6fd85d10985d3a1dbd21bbe4773f
23 -DIST scribus-1.5.3.tar.xz 74222084 BLAKE2B ffb50c728c0669ab8a22c416c143e8dd47c818120247b4cf5a890872857326b53491be99004a344d78ea2cf2b174ae2987ddcddb4cef39a6e95fe1695be45d48 SHA512 487cea685869397bc52acc7be8e8e9f4bad3f594c1f95740207e4d9e26b07461a7fd2a95d5337b38f1b0fa6504a9f6059cca6740c78cc165eab0b779ffdfe980
24 DIST scribus-1.5.4-poppler-0.64.0.patch.tar.xz 3020 BLAKE2B 3388efe6498545ffef6604a41b9e697a0cb6cd053c4893f9d64349bb2251400aca7a4f7dd193eb94cf69ca3f4ae1a3ba3ed106127c4fa680f396940d8056e669 SHA512 4577b4b737948a2b41dc0cec90ec95ba260959343e4953929696ceab518a2723a28a891b189caf79435e7fc8f8fc0a1012e7079e890d10549cb2ba426d15b568
25 DIST scribus-1.5.4.tar.xz 72832248 BLAKE2B 64797e865ce44fb01f1e29823e3cb46b2b8f1501e8d07e8b265e93a37961582ec4118d0f32d460bc044e32cf7fa6069732f6b9ce60e4dc4b0b42f914b280e637 SHA512 7875ea5f3db5fb116856cf4cf56b4cce2d0b00d9c4820969f52b89e9bf2b36f96eb9e15b368d392be74d4c6d32e971fc28f6ecbf6661fce5e3b9cb61c4d02403
26
27 diff --git a/app-office/scribus/scribus-1.5.3-r1.ebuild b/app-office/scribus/scribus-1.5.3-r1.ebuild
28 deleted file mode 100644
29 index b962ce4b717..00000000000
30 --- a/app-office/scribus/scribus-1.5.3-r1.ebuild
31 +++ /dev/null
32 @@ -1,250 +0,0 @@
33 -# Copyright 1999-2018 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -
38 -PYTHON_COMPAT=( python2_7 )
39 -PYTHON_REQ_USE="tk?"
40 -CMAKE_MAKEFILE_GENERATOR=ninja
41 -
42 -inherit cmake-utils eutils flag-o-matic gnome2 python-single-r1 xdg-utils
43 -
44 -DESCRIPTION="Desktop publishing (DTP) and layout program"
45 -HOMEPAGE="https://www.scribus.net/"
46 -SRC_URI="mirror://sourceforge/project/${PN}/${PN}-devel/${PV}/${P}.tar.xz
47 -https://dev.gentoo.org/~asturm/distfiles/${P}.patches.tar.xz"
48 -
49 -LICENSE="GPL-2"
50 -SLOT="0"
51 -KEYWORDS="amd64 ~hppa ppc ppc64 x86"
52 -IUSE="+boost debug examples graphicsmagick hunspell +minimal osg +pdf scripts templates tk"
53 -
54 -#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
55 -# Keep this sorted, otherwise eliminating of duplicates below won't work
56 -IUSE_L10N=" 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_GB en_US eo es es_ES et eu fa_IR fi fi_FI fr gl he he_IL hr hu hu_HU ia id id_ID is is_IS it ja kab kn_IN 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 so sq sr sv sv_SE te th_TH tr uk uk_UA zh_CN zh_TW"
57 -
58 -map_lang() {
59 - local lang=${1/_/-}
60 - case $1 in
61 - # Retain the following, which have a specific subtag
62 - de_*|en_*|pt_*|zh_*) ;;
63 - # Consider all other xx_XX as duplicates of the generic xx tag
64 - *_*) lang=${1%%_*} ;;
65 - esac
66 - echo ${lang}
67 -}
68 -
69 -prev_l=
70 -for l in ${IUSE_L10N}; do
71 - l=$(map_lang ${l})
72 - [[ ${l} != "${prev_l}" ]] && IUSE+=" l10n_${l}"
73 - prev_l=${l}
74 -done
75 -unset l prev_l
76 -
77 -REQUIRED_USE="
78 - ${PYTHON_REQUIRED_USE}
79 - tk? ( scripts )"
80 -
81 -# osg
82 -# couple of third_party libs bundled
83 -COMMON_DEPEND="
84 - ${PYTHON_DEPS}
85 - app-text/libmspub
86 - app-text/poppler:=
87 - dev-libs/hyphen
88 - >=dev-libs/icu-58.2:0=
89 - dev-libs/librevenge
90 - dev-libs/libxml2
91 - dev-qt/qtcore:5
92 - dev-qt/qtgui:5
93 - dev-qt/qtnetwork:5
94 - dev-qt/qtopengl:5
95 - dev-qt/qtprintsupport:5
96 - dev-qt/qtquickcontrols:5
97 - dev-qt/qtwidgets:5
98 - dev-qt/qtxml:5
99 - media-libs/fontconfig
100 - media-libs/freetype:2
101 - >=media-libs/harfbuzz-0.9.42:0=[icu]
102 - media-libs/lcms:2
103 - media-libs/libcdr
104 - media-libs/libfreehand
105 - media-libs/libpagemaker
106 - media-libs/libpng:0=
107 - media-libs/libvisio
108 - media-libs/tiff:0
109 - net-print/cups
110 - sys-libs/zlib[minizip]
111 - virtual/jpeg:0=
112 - >=x11-libs/cairo-1.10.0[X,svg]
113 - boost? ( >=dev-libs/boost-1.62:= )
114 - hunspell? ( app-text/hunspell )
115 - graphicsmagick? ( media-gfx/graphicsmagick )
116 - osg? ( dev-games/openscenegraph )
117 - pdf? ( app-text/podofo:0= )
118 - scripts? ( dev-python/pillow[tk?,${PYTHON_USEDEP}] )
119 - tk? ( dev-python/pillow[tk?,${PYTHON_USEDEP}] )
120 -"
121 -RDEPEND="${COMMON_DEPEND}
122 - app-text/ghostscript-gpl"
123 -DEPEND="${COMMON_DEPEND}
124 - dev-qt/linguist-tools:5
125 - virtual/pkgconfig"
126 -
127 -PATCHES=(
128 - "${FILESDIR}"/${P}-docdir.patch
129 - "${FILESDIR}"/${P}-fpic.patch
130 - "${WORKDIR}"/${P}-cmake-openssl.patch
131 - "${WORKDIR}"/${P}-poppler-0.58.patch
132 - "${WORKDIR}"/${P}-x86-fpic.patch
133 - "${WORKDIR}"/${P}-qt-5.11.patch
134 -)
135 -
136 -src_prepare() {
137 - rm -r codegen/cheetah || die
138 - cat > cmake/modules/FindZLIB.cmake <<- EOF || die
139 - find_package(PkgConfig)
140 - pkg_check_modules(ZLIB minizip zlib)
141 - SET( ZLIB_LIBRARY \${ZLIB_LIBRARIES} )
142 - SET( ZLIB_INCLUDE_DIR \${ZLIB_INCLUDE_DIRS} )
143 - MARK_AS_ADVANCED( ZLIB_LIBRARY ZLIB_INCLUDE_DIR )
144 - EOF
145 -
146 - sed \
147 - -e "/^\s*unzip\.[ch]/d" \
148 - -e "/^\s*ioapi\.[ch]/d" \
149 - -i scribus/CMakeLists.txt Scribus.pro || die
150 - rm scribus/ioapi.[ch] || die
151 -
152 - sed \
153 - -e 's:\(${CMAKE_INSTALL_PREFIX}\):./\1:g' \
154 - -i resources/templates/CMakeLists.txt || die
155 -
156 - edos2unix scribus/ui/propertiespalette_utils.cpp
157 -
158 - cmake-utils_src_prepare
159 -}
160 -
161 -src_configure() {
162 - # bug #550818
163 - append-cppflags -DHAVE_MEMRCHR
164 -
165 - local _lang lang langs
166 - for _lang in ${IUSE_L10N}; do
167 - lang=$(map_lang ${_lang})
168 - if use l10n_${lang}; then
169 - # From the CMakeLists.txt
170 - # "#Bit of a hack, preprocess all the filenames to generate our language string, needed for -DWANT_GUI_LANG=en_GB;de_DE , etc"
171 - langs+=";${_lang}"
172 - else
173 - # Don't install localized documentation
174 - sed -e "/${_lang}/d" -i doc/CMakeLists.txt || die
175 - safe_delete \
176 - ./resources/dicts/README_${_lang}.txt \
177 - ./resources/dicts/README_hyph_${_lang}.txt \
178 - ./resources/dicts/hyph_${_lang}.dic \
179 - ./resources/loremipsum/${_lang}.xml
180 - fi
181 - sed -e "/en_EN/d" -i doc/CMakeLists.txt || die
182 - safe_delete \
183 - ./resources/dicts/README_en_EN.txt \
184 - ./resources/dicts/README_hyph_en_EN.txt \
185 - ./resources/dicts/hyph_en_EN.dic \
186 - ./resources/loremipsum/en_EN.xml
187 - done
188 -
189 - local mycmakeargs=(
190 - -DHAVE_PYTHON=ON
191 - -DPYTHON_INCLUDE_PATH="$(python_get_includedir)"
192 - -DPYTHON_LIBRARY="$(python_get_library_path)"
193 - -DWANT_DISTROBUILD=ON
194 - -DDOCDIR="${EPREFIX%/}/usr/share/doc/${PF}/"
195 - -DWANT_GUI_LANG="${langs#;};en"
196 - -DWANT_CPP11=ON
197 - -DWITH_PODOFO="$(usex pdf)"
198 - -DWITH_BOOST="$(usex boost)"
199 - -DWANT_GRAPHICSMAGICK="$(usex graphicsmagick)"
200 - -DWANT_NOOSG="$(usex !osg)"
201 - -DWANT_DEBUG="$(usex debug)"
202 - -DWANT_HEADERINSTALL="$(usex !minimal)"
203 - -DWANT_HUNSPELL="$(usex hunspell)"
204 - -DWANT_NOEXAMPLES="$(usex !examples)"
205 - -DWANT_NOTEMPLATES="$(usex !templates)"
206 - )
207 - cmake-utils_src_configure
208 -}
209 -
210 -src_compile() {
211 - cmake-utils_src_compile
212 -}
213 -
214 -src_install() {
215 - cmake-utils_src_install
216 -
217 - local lang _lang
218 - # en_EN can be deleted always
219 - for _lang in ${IUSE_L10N}; do
220 - lang=$(map_lang ${_lang})
221 - if ! use l10n_${lang}; then
222 - safe_delete "${ED%/}"/usr/share/man/${_lang}
223 - fi
224 - done
225 -
226 - if ! use scripts; then
227 - rm "${ED%/}"/usr/share/scribus/scripts/*.py || die
228 - elif ! use tk; then
229 - rm "${ED%/}"/usr/share/scribus/scripts/{FontSample,CalendarWizard}.py || die
230 - fi
231 -
232 - use scripts && \
233 - python_fix_shebang "${ED%/}"/usr/share/scribus/scripts && \
234 - python_optimize "${ED%/}"/usr/share/scribus/scripts
235 -
236 - mv "${ED%/}"/usr/share/doc/${PF}/{en,html} || die
237 - ln -sf html "${ED%/}"/usr/share/doc/${PF}/en || die
238 - cat >> "${T}"/COPYING <<- EOF || die
239 - ${PN} is licensed under the "${LICENSE}".
240 - Please visit https://www.gnu.org/licenses/gpl-2.0.html for the complete license text.
241 - EOF
242 - dodoc "${T}"/COPYING
243 - docompress -x /usr/share/doc/${PF}/en /usr/share/doc/${PF}/{AUTHORS,TRANSLATION,LINKS,COPYING}
244 - local size
245 - for size in 16 32 128 256; do
246 - newicon -s $size resources/iconsets/artwork/icon_${size}x${size}.png scribus.png
247 - done
248 - newicon -s 64 resources/iconsets/artwork/icon_32x32@××.png scribus.png
249 - doicon resources/iconsets/*/scribus.png
250 - domenu scribus.desktop
251 -}
252 -
253 -pkg_preinst() {
254 - gnome2_icon_savelist
255 -}
256 -
257 -pkg_postinst() {
258 - xdg_desktop_database_update
259 - xdg_mimeinfo_database_update
260 - gnome2_icon_cache_update
261 -}
262 -
263 -pkg_postrm() {
264 - xdg_desktop_database_update
265 - xdg_mimeinfo_database_update
266 - gnome2_icon_cache_update
267 -}
268 -
269 -safe_delete () {
270 - local x
271 - for x in ${@}; do
272 - if [[ -d "${x}" ]]; then
273 - ebegin "Deleting ${x} recursively"
274 - rm -r "${x}" || die
275 - eend $?
276 - elif [[ -f "${x}" ]]; then
277 - ebegin "Deleting ${x}"
278 - rm "${x}" || die
279 - eend $?
280 - fi
281 - done
282 -}