Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/scribus/
Date: Tue, 22 Dec 2020 13:25:31
Message-Id: 1608643518.5eec1ae6ab42f0328ab69922ec287a6d3d0494e1.fordfrog@gentoo
1 commit: 5eec1ae6ab42f0328ab69922ec287a6d3d0494e1
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 22 13:25:18 2020 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 22 13:25:18 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5eec1ae6
7
8 app-office/scribus: removed obsolete 1.5.5_p20200626
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 app-office/scribus/Manifest | 1 -
14 app-office/scribus/scribus-1.5.5_p20200626.ebuild | 159 ----------------------
15 2 files changed, 160 deletions(-)
16
17 diff --git a/app-office/scribus/Manifest b/app-office/scribus/Manifest
18 index d253eedb7a6..be709ff7499 100644
19 --- a/app-office/scribus/Manifest
20 +++ b/app-office/scribus/Manifest
21 @@ -1,2 +1 @@
22 -DIST scribus-1.5.5_p20200626.tar.gz 87557791 BLAKE2B 183b035901f5a19ffbf5890acc6037eb5483a0b5837b244b39838ca03d13bd4afc76c3c41345123aec402c602177c5fff7183deba10f8e33e980659c4ef7881e SHA512 ff6cf0d86c874b7f03c8be9675f92c6cc7797e3a344326824e4f01f0b02ec02d6fdf5b52924e51b3436d9a6d78eda47a5e9987507721d18985768cc5a3c77245
23 DIST scribus-1.5.6.1.tar.gz 87557791 BLAKE2B 183b035901f5a19ffbf5890acc6037eb5483a0b5837b244b39838ca03d13bd4afc76c3c41345123aec402c602177c5fff7183deba10f8e33e980659c4ef7881e SHA512 ff6cf0d86c874b7f03c8be9675f92c6cc7797e3a344326824e4f01f0b02ec02d6fdf5b52924e51b3436d9a6d78eda47a5e9987507721d18985768cc5a3c77245
24
25 diff --git a/app-office/scribus/scribus-1.5.5_p20200626.ebuild b/app-office/scribus/scribus-1.5.5_p20200626.ebuild
26 deleted file mode 100644
27 index 2b4f3fb49c3..00000000000
28 --- a/app-office/scribus/scribus-1.5.5_p20200626.ebuild
29 +++ /dev/null
30 @@ -1,159 +0,0 @@
31 -# Copyright 1999-2020 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=7
35 -
36 -PYTHON_COMPAT=( python3_{6,7,8,9} )
37 -PYTHON_REQ_USE="tk?"
38 -COMMIT=aa84120d97003a03d883db33ea9a6ad28550e59a
39 -inherit cmake desktop flag-o-matic python-single-r1 xdg
40 -
41 -DESCRIPTION="Desktop publishing (DTP) and layout program"
42 -HOMEPAGE="https://www.scribus.net/"
43 -SRC_URI="https://github.com/${PN}project/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
44 -
45 -LICENSE="GPL-2"
46 -SLOT="0"
47 -KEYWORDS="amd64 ppc ppc64 x86"
48 -IUSE="+boost debug examples graphicsmagick hunspell +minimal osg +pdf scripts +templates tk"
49 -
50 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
51 - tk? ( scripts )"
52 -
53 -# osg
54 -# couple of third_party libs bundled
55 -BDEPEND="
56 - dev-qt/linguist-tools:5
57 - virtual/pkgconfig
58 -"
59 -DEPEND="${PYTHON_DEPS}
60 - app-text/libmspub
61 - app-text/libqxp
62 - app-text/poppler:=
63 - dev-libs/hyphen
64 - >=dev-libs/icu-58.2:0=
65 - dev-libs/librevenge
66 - dev-libs/libxml2
67 - dev-qt/qtcore:5
68 - dev-qt/qtgui:5[-gles2-only]
69 - dev-qt/qtnetwork:5
70 - dev-qt/qtopengl:5
71 - dev-qt/qtprintsupport:5
72 - dev-qt/qtwidgets:5
73 - dev-qt/qtxml:5
74 - media-libs/fontconfig
75 - media-libs/freetype:2
76 - >=media-libs/harfbuzz-0.9.42:0=[icu]
77 - media-libs/lcms:2
78 - media-libs/libcdr
79 - media-libs/libfreehand
80 - media-libs/libpagemaker
81 - media-libs/libpng:0=
82 - media-libs/libvisio
83 - media-libs/libzmf
84 - media-libs/tiff:0
85 - net-print/cups
86 - sys-libs/zlib[minizip]
87 - virtual/jpeg:0=
88 - >=x11-libs/cairo-1.10.0[X,svg]
89 - boost? ( >=dev-libs/boost-1.67:= )
90 - graphicsmagick? ( media-gfx/graphicsmagick:= )
91 - hunspell? ( app-text/hunspell:= )
92 - osg? ( dev-games/openscenegraph:= )
93 - pdf? ( app-text/podofo:0= )
94 - scripts? (
95 - $(python_gen_cond_dep '
96 - dev-python/pillow[tk?,${PYTHON_MULTI_USEDEP}]
97 - ')
98 - )
99 -"
100 -RDEPEND="${DEPEND}
101 - app-text/ghostscript-gpl
102 -"
103 -
104 -PATCHES=(
105 - # non(?)-upstreamable
106 - "${FILESDIR}"/${PN}-1.5.3-fpic.patch
107 - "${FILESDIR}"/${PN}-1.5.6-docdir.patch
108 - "${FILESDIR}"/${PN}-1.5.5-findhyphen-1.patch
109 - "${FILESDIR}"/${PN}-1.5.6-findhyphen.patch
110 -)
111 -
112 -CMAKE_BUILD_TYPE="Release"
113 -
114 -S="${WORKDIR}"/${PN}-${COMMIT}
115 -
116 -src_prepare() {
117 - cmake_src_prepare
118 -
119 - rm -r codegen/cheetah scribus/third_party/hyphen || die
120 -
121 - sed \
122 - -e "/^\s*unzip\.[ch]/d" \
123 - -e "/^\s*ioapi\.[ch]/d" \
124 - -i scribus/CMakeLists.txt Scribus.pro || die
125 - rm scribus/ioapi.[ch] || die
126 -
127 - sed \
128 - -e 's:\(${CMAKE_INSTALL_PREFIX}\):./\1:g' \
129 - -i resources/templates/CMakeLists.txt || die
130 -
131 - sed \
132 - -e "/^add_subdirectory(ui\/qml)/s/^/#DONT/" \
133 - -i scribus/CMakeLists.txt || die # nothing but a bogus Hello World test
134 -}
135 -
136 -src_configure() {
137 - # bug #550818
138 - append-cppflags -DHAVE_MEMRCHR
139 -
140 - local mycmakeargs=(
141 - -DHAVE_PYTHON=ON
142 - -DWANT_DISTROBUILD=ON
143 - -DDOCDIR="${EPREFIX}"/usr/share/doc/${PF}/
144 - -DPython3_EXECUTABLE="${PYTHON}"
145 - -DWITH_BOOST=$(usex boost)
146 - -DWANT_DEBUG=$(usex debug)
147 - -DWANT_NOEXAMPLES=$(usex !examples)
148 - -DWANT_GRAPHICSMAGICK=$(usex graphicsmagick)
149 - -DWANT_HUNSPELL=$(usex hunspell)
150 - -DWANT_HEADERINSTALL=$(usex !minimal)
151 - -DWANT_NOOSG=$(usex !osg)
152 - -DWITH_PODOFO=$(usex pdf)
153 - -DWANT_NOTEMPLATES=$(usex !templates)
154 - )
155 - cmake_src_configure
156 -}
157 -
158 -src_install() {
159 - cmake_src_install
160 -
161 - if ! use tk; then
162 - rm "${ED}"/usr/share/scribus/scripts/{FontSample,CalendarWizard}.py || die
163 - fi
164 - if use scripts; then
165 - python_fix_shebang "${ED}"/usr/share/scribus/scripts
166 - python_optimize "${ED}"/usr/share/scribus/scripts
167 - else
168 - rm "${ED}"/usr/share/scribus/scripts/*.py || die
169 - fi
170 -
171 - mv "${ED}"/usr/share/doc/${PF}/{en,html} || die
172 - ln -sf html "${ED}"/usr/share/doc/${PF}/en || die
173 -
174 - # These files are parsed to populate the help/about window.
175 - cat >> "${T}"/COPYING <<- EOF || die
176 - ${PN} is licensed under the "${LICENSE}".
177 - Please visit https://www.gnu.org/licenses/gpl-2.0.html for the complete license text.
178 - EOF
179 - dodoc "${T}"/COPYING
180 - docompress -x /usr/share/doc/${PF}/en /usr/share/doc/${PF}/{AUTHORS,TRANSLATION,LINKS,COPYING}
181 -
182 - local size
183 - for size in 16 32 128 256 512; do
184 - newicon -s $size resources/iconsets/artwork/icon_${size}x${size}.png scribus.png
185 - done
186 - newicon -s 64 resources/iconsets/artwork/icon_32x32@××.png scribus.png
187 - doicon resources/iconsets/*/scribus.png
188 - domenu scribus.desktop
189 -}