Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-office/scribus: ChangeLog scribus-1.4.2-r3.ebuild
Date: Wed, 29 May 2013 08:18:15
Message-Id: 20130529081810.526892171D@flycatcher.gentoo.org
1 jlec 13/05/29 08:18:10
2
3 Modified: ChangeLog
4 Added: scribus-1.4.2-r3.ebuild
5 Log:
6 app-office/scribus: Backport upstream fix for deprecated dev-python/imaging usage, #471498
7
8 (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)
9
10 Revision Changes Path
11 1.175 app-office/scribus/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/scribus/ChangeLog?rev=1.175&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/scribus/ChangeLog?rev=1.175&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/scribus/ChangeLog?r1=1.174&r2=1.175
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-office/scribus/ChangeLog,v
20 retrieving revision 1.174
21 retrieving revision 1.175
22 diff -u -r1.174 -r1.175
23 --- ChangeLog 2 Mar 2013 19:37:11 -0000 1.174
24 +++ ChangeLog 29 May 2013 08:18:10 -0000 1.175
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-office/scribus
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/ChangeLog,v 1.174 2013/03/02 19:37:11 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/ChangeLog,v 1.175 2013/05/29 08:18:10 jlec Exp $
30 +
31 +*scribus-1.4.2-r3 (29 May 2013)
32 +
33 + 29 May 2013; Justin Lecher <jlec@g.o> +scribus-1.4.2-r3.ebuild,
34 + +files/scribus-1.4.2-imaging.patch:
35 + Backport upstream fix for deprecated dev-python/imaging usage, #471498
36
37 02 Mar 2013; Markos Chandras <hwoarang@g.o> scribus-1.4.1-r1.ebuild,
38 scribus-1.4.2-r2.ebuild, scribus-1.4.9999.ebuild, scribus-9999.ebuild:
39
40
41
42 1.1 app-office/scribus/scribus-1.4.2-r3.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/scribus/scribus-1.4.2-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/scribus/scribus-1.4.2-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: scribus-1.4.2-r3.ebuild
48 ===================================================================
49 # Copyright 1999-2013 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.2-r3.ebuild,v 1.1 2013/05/29 08:18:10 jlec Exp $
52
53 EAPI=5
54
55 PYTHON_COMPAT=( python{2_6,2_7} )
56 PYTHON_REQ_USE=tk
57
58 inherit cmake-utils fdo-mime multilib python-single-r1
59
60 DESCRIPTION="Desktop publishing (DTP) and layout program"
61 HOMEPAGE="http://www.scribus.net/"
62 SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.xz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
67 IUSE="aspell cairo debug examples hunspell +minimal +pdf templates"
68
69 # a=$(ls resources/translations/po/scribus.*ts | sed -e 's:\.: :g' | awk '{print $2}'); echo ${a}
70 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"
71 IUSE+=" ${IUSE_LINGUAS// / linguas_}"
72
73 COMMON_DEPEND="
74 dev-python/imaging[tk,${PYTHON_USEDEP}]
75 dev-libs/boost
76 dev-libs/hyphen
77 dev-libs/libxml2
78 media-libs/fontconfig
79 media-libs/freetype:2
80 media-libs/lcms:2
81 media-libs/libpng:0
82 media-libs/tiff:0
83 net-print/cups
84 sys-libs/zlib[minizip]
85 dev-qt/qtcore:4
86 dev-qt/qtgui:4
87 virtual/jpeg
88 cairo? ( x11-libs/cairo[X,svg] )
89 pdf? ( app-text/podofo )
90 aspell? ( app-text/aspell )
91 hunspell? ( app-text/hunspell )"
92 RDEPEND="${COMMON_DEPEND}
93 app-text/ghostscript-gpl"
94 DEPEND="${COMMON_DEPEND}
95 virtual/pkgconfig"
96
97 PATCHES=(
98 "${FILESDIR}"/${P}-docs.patch
99 "${FILESDIR}"/${P}-imaging.patch
100 "${FILESDIR}"/${PN}-1.4.0-minizip.patch
101 )
102
103 src_prepare() {
104 cat > cmake/modules/FindZLIB.cmake <<- EOF
105 find_package(PkgConfig)
106 pkg_check_modules(ZLIB minizip zlib)
107 SET( ZLIB_LIBRARY \${ZLIB_LIBRARIES} )
108 SET( ZLIB_INCLUDE_DIR \${ZLIB_INCLUDE_DIRS} )
109 MARK_AS_ADVANCED( ZLIB_LIBRARY ZLIB_INCLUDE_DIR )
110 EOF
111
112 rm scribus/{ioapi,unzip}.[ch] || die
113
114 sed \
115 -e 's:\(${CMAKE_INSTALL_PREFIX}\):./\1:g' \
116 -i resources/templates/CMakeLists.txt || die
117
118 base_src_prepare
119 }
120
121 src_configure() {
122 local lang langs
123 for lang in ${IUSE_LINGUAS}; do
124 if use linguas_${lang}; then
125 langs+=",${lang}"
126 else
127 sed -e "/${lang}/d" -i scribus/doc/CMakeLists.txt || die
128 fi
129 done
130
131 local mycmakeargs=(
132 -DHAVE_PYTHON=ON
133 -DPYTHON_INCLUDE_PATH=$(python_get_includedir)
134 -DPYTHON_LIBRARY="${EPREFIX}/usr/$(get_libdir)/lib${EPYTHON}.so"
135 -DWANT_NORPATH=ON
136 -DWANT_QTARTHUR=ON
137 -DWANT_QT3SUPPORT=OFF
138 -DGENTOOVERSION=${PVR}
139 -DWANT_GUI_LANG=${langs#,}
140 $(cmake-utils_use_with aspell ASPELL)
141 $(cmake-utils_use_with pdf PODOFO)
142 $(cmake-utils_use_want cairo)
143 $(cmake-utils_use_want debug DEBUG)
144 $(cmake-utils_use_want minimal NOHEADERINSTALL)
145 $(cmake-utils_use_want hunspell HUNSPELL)
146 )
147 use examples || mycmakeargs+=( -DWANT_NOEXAMPLES=ON)
148 use templates || mycmakeargs+=( -DWANT_NOTEMPLATES=ON)
149 cmake-utils_src_configure
150 }
151
152 src_install() {
153 cmake-utils_src_install
154
155 local lang file
156 for lang in ${IUSE_LINGUAS}; do
157 file="${ED}"/usr/share/scribus/translations/scribus.${lang}.qm
158 if ! use linguas_${lang} && [[ -f "${file}" ]]; then
159 rm "${file}" || die
160 fi
161 done
162
163 mv "${ED}"/usr/share/doc/${PF}/{en,html} || die
164 ln -sf html "${ED}"/usr/share/doc/${PF}/en || die
165 docompress -x /usr/share/doc/${PF}/en
166 doicon resources/icons/scribus.png
167 domenu scribus.desktop
168 }
169
170 pkg_postinst() {
171 fdo-mime_desktop_database_update
172 fdo-mime_mime_database_update
173 }
174
175 pkg_postrm() {
176 fdo-mime_desktop_database_update
177 fdo-mime_mime_database_update
178 }