Version Bump, added linguas support, #315567; cleaned old
authorJustin Lecher <jlec@gentoo.org>
Wed, 4 Jan 2012 09:11:02 +0000 (09:11 +0000)
committerJustin Lecher <jlec@gentoo.org>
Wed, 4 Jan 2012 09:11:02 +0000 (09:11 +0000)
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64

app-office/scribus/ChangeLog
app-office/scribus/Manifest
app-office/scribus/metadata.xml
app-office/scribus/scribus-1.3.6.ebuild [deleted file]
app-office/scribus/scribus-1.3.8.ebuild [deleted file]
app-office/scribus/scribus-1.3.9-r1.ebuild [deleted file]
app-office/scribus/scribus-1.4.0.ebuild [moved from app-office/scribus/scribus-1.4.0_rc6.ebuild with 56% similarity]
app-office/scribus/scribus-1.4.0_rc5.ebuild [deleted file]

index cdd5a34a38169a01ec5d2f0a70cb97f141db8b0f..de757a0f1df4d79e94a101852da231141ed9dea7 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for app-office/scribus
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/ChangeLog,v 1.148 2011/11/17 17:05:54 jlec Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/ChangeLog,v 1.149 2012/01/04 09:11:02 jlec Exp $
+
+*scribus-1.4.0 (04 Jan 2012)
+
+  04 Jan 2012; Justin Lecher <jlec@gentoo.org> -scribus-1.3.6.ebuild,
+  -scribus-1.3.8.ebuild, -scribus-1.3.9-r1.ebuild, -scribus-1.4.0_rc5.ebuild,
+  -scribus-1.4.0_rc6.ebuild, +scribus-1.4.0.ebuild, metadata.xml:
+  Version Bump, added linguas support, #315567; cleaned old
 
   17 Nov 2011; Justin Lecher <jlec@gentoo.org> scribus-1.3.6.ebuild,
   scribus-1.3.8.ebuild, scribus-1.3.9.ebuild, scribus-1.3.9-r1.ebuild,
index 5705aca7421f1e435ea3c70c1263c1ad9574e9e1..c96b00bfe948c52d42ea478a72ea80e6e92c60df 100644 (file)
@@ -4,24 +4,17 @@ Hash: SHA512
 AUX scribus-1.3.5.1-system-hyphen.patch 3754 RMD160 15e0768f9f2aaf1c297b2226bd040d9ff8b0a648 SHA1 c5f9513799f41fb6569cc6bf9a2f7825d3a494bd SHA256 f17ef356e0c096b71e83048a4c97b53e455a73af7f25bc9048136c8000744e67
 AUX scribus-1.3.6-podofo-0.8.0.patch 1749 RMD160 f5a54609d7f382cc99e90857c430585f704b9918 SHA1 901631c1b1b2a01ed4acb594ad8bc1a54803810c SHA256 498e2ec592175123b54cc090b1b839c8452c1a1a768d9b29737c5386aad963b7
 AUX scribus-1.4.0_rc5-docs.patch 828 RMD160 599634de0a6f7bc2594c28f2a1d089f3818f1fd5 SHA1 e9df8b185e0bf72c19c2e1586a6a8d1ceb9bb72a SHA256 50c56976bcc2e2a7d04ee62b8c2398d91137360f69e95910c6f2a01b49c8595f
-DIST scribus-1.3.6.tar.bz2 22911379 RMD160 8f31a7e1030999fb85be9511ec97f7fc12d86a89 SHA1 35ceba09bea73b3cb10f38dddc5bc24185df794e SHA256 51399f004b3d9ae8cba48772421a307fa53cdf3bedd6a7ffb0f23909574e9675
-DIST scribus-1.3.8.tar.bz2 24942860 RMD160 6f2423062daa5dd17e6b6da9695fc81323199ac2 SHA1 be54c93a8da56d9efe5e4d46c5cebebc36104670 SHA256 4ad5f78b9e8421d621f195d185d3213e525e9c2cf1a63ebb935d13128a2126c3
 DIST scribus-1.3.9.tar.bz2 35729860 RMD160 63e1d3f7f723843e9d1c787e1405b57a15f08fcc SHA1 86bc4db2d8fbb91fe94f8535327991e9128c5862 SHA256 fb172f6b9a812f3b0a9de911b245012a067a9aad50473fa1da1d1c5861641eac
-DIST scribus-1.4.0.rc5.tar.bz2 36661351 RMD160 73d040ef136df76fbbc440f0e8589b913919a936 SHA1 51ff4646a25656beafc494144eb94d8574fafa8d SHA256 4a65d0de346a00972447a9bed03e2a3c039023752bf5ce2fffd892a3879c2a80
-DIST scribus-1.4.0.rc6.tar.bz2 39287217 RMD160 0d5737aa15512d1c8334c74af6fcf225aaf2cdcf SHA1 1962052d5faf52dcb6988e4e0ff87d5d626351d1 SHA256 91b218469f96818d00e0ff606b3524757bda03289e72edfca34462f865ff36e7
-EBUILD scribus-1.3.6.ebuild 1834 RMD160 bac253d6305c9049d52a1524b3d3612bcf127c64 SHA1 979a9ebb96890a4e1b55ba36d57ef9effbcbb4d1 SHA256 ba1b618c5c9aa35940b64ccbc17ca921a249d8625bc985b8da078c8d1cae8fc6
-EBUILD scribus-1.3.8.ebuild 1764 RMD160 e7848ff753c8df5835372773bfdeeb0bc2edbd1d SHA1 83bc3d39724512cd61bc24ef69ea96c51e20bd2f SHA256 64cb3becf89e7f5a188fe0365ddf2ddd1459e07a6468826da9ee925a1ebd4751
-EBUILD scribus-1.3.9-r1.ebuild 2014 RMD160 8351802dfccb93b803d5e95a8f4e22e36815a7cf SHA1 288645c8642dfd8c4efaee7a67224931c36b02a8 SHA256 05201b51495cad1e12896f23c572c7a44bbd76c0d4cc4b8035e7bdd123b33274
+DIST scribus-1.4.0.tar.bz2 42134397 RMD160 f4a0813c1961f1929bccaaa4c0a21f84dfd75c62 SHA1 d19e455f261c4075076f1d6f4a55fbd934a66c60 SHA256 9ae4e50523f0891c9dce45893ca9f58d32096442e43e75acec466fd9405362a9
 EBUILD scribus-1.3.9-r2.ebuild 2116 RMD160 c6c4c443911ea6d6052e0f094685e0e83d0a4324 SHA1 48327cd45dfc02a60b989b920bccf6770ee823d5 SHA256 85b650842af55f1ebd063d898fb3b32e4a4c7d3c3bbfa6e2382f024b485143fb
 EBUILD scribus-1.3.9.ebuild 1760 RMD160 98f5cdabc0a96a5e2851f310491062d69fad782a SHA1 ddf0cad864308587b1e0e6c4c1711e8dcb2428be SHA256 fca86c8dec51f2cf185702bb0db6aa3ceaa483895d1ac2c200005c33f2492849
-EBUILD scribus-1.4.0_rc5.ebuild 2190 RMD160 a653e9e99222c9f7baf576e692bf3e513ba37c8d SHA1 9822a19505cc6e2fa90266b8f9d7ccf8bb1383eb SHA256 e81745dd34aa4d357e7f7fee4294bf0b486740e393e18163875738c648a2fa58
-EBUILD scribus-1.4.0_rc6.ebuild 2201 RMD160 844fad372ce87abd0447f0b1c1c8f04b6582b3ba SHA1 00fdb2f7b0c1c04ce949f40f7897c8acddba38e6 SHA256 28a42c8fd82a6f935ff332ec9f2497bd5ea947575a2d6daf18242bc6fcb9abcf
-MISC ChangeLog 18719 RMD160 2a975574125f5b627bc3772ae5df3ed0a8862219 SHA1 9d14f8421974e256600fb428f12fe1d7cb89b2ba SHA256 be516f84678bac850392ff22434addff327e7b9edba34ada110336049065405a
-MISC metadata.xml 509 RMD160 973444b4aa0105ba32817d53de061a7d3708a60f SHA1 0f44e6bec99702756c1128c416367cda4c1b0c0e SHA256 d20aac5deda5242c9f51e632f54f672a7c7df060ae18ff04f1779d57b202550a
+EBUILD scribus-1.4.0.ebuild 2672 RMD160 c42866ab92979b929396cd46a3051517a4e3615d SHA1 8c0a44d59ee48128ae7ba2fbaed6fb356b5ce63d SHA256 190f827defa255072a997eceea625366bd5655f3abe8fbaca80367a0796b0b3b
+MISC ChangeLog 19024 RMD160 bf1a7c92d2bd0968c3622d50bc11244ac38d7566 SHA1 0ccfc74c8ba4ea6667e8692be94ab09d3c036838 SHA256 aa8e5624e191d3a8757c2cf32ac9caf3038ba1b4eab7bae0e141de18c804ad0a
+MISC metadata.xml 1137 RMD160 00e3b693f409e0d90ee575f294c3caa1cbcc2b22 SHA1 8b7b7aef6154e329325efd40da2c22b7c099c513 SHA256 794d317abd9329bff636e333c582e7fd79a8f4cccfe8d606d960eb2aebb22ccc
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.18 (GNU/Linux)
 
-iEYEAREKAAYFAk7FPwAACgkQgAnW8HDreRb6JwCgmY4qn7D3IC52kou2mRl8/IZn
-FhIAoIeMN5/at+rF1NoAjei8qTYqVgE6
-=KlFT
+iEYEAREKAAYFAk8EF7EACgkQgAnW8HDreRYH4QCgs/kfpd4iRTNhJqkApDQaIZn+
+ph4AoL8UDZP0cB85OXMnQYtFNf0659+T
+=4uh2
 -----END PGP SIGNATURE-----
index c8954cc939843ee35941f9b5d51e5ba17c72114d..08bff7ce5327142581dd610d4156e3717a171130 100644 (file)
        <use>
                <flag name="minimal">Don't install headers (only required for e.g. plug-in developers)</flag>
                <flag name="templates">Document tamplates</flag>
+               <flag name="linguas_cs_CZ">Language support for cs_CZ</flag>
+               <flag name="linguas_da_DK">Language support for da_DK</flag>
+               <flag name="linguas_de_1901">Language support for de_1901</flag>
+               <flag name="linguas_de_CH">Language support for de_CH</flag>
+               <flag name="linguas_en_AU">Language support for en_AU</flag>
+               <flag name="linguas_lt_LT">Language support for lt_LT</flag>
+               <flag name="linguas_pl_PL">Language support for pl_PL</flag>
+               <flag name="linguas_sa">Language support for sa</flag>
+               <flag name="linguas_sk_SK">Language support for sk_SK</flag>
+               <flag name="linguas_th_TH">Language support for th_TH</flag>
        </use>
 </pkgmetadata>
diff --git a/app-office/scribus/scribus-1.3.6.ebuild b/app-office/scribus/scribus-1.3.6.ebuild
deleted file mode 100644 (file)
index 565ccba..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-1.3.6.ebuild,v 1.12 2011/11/17 17:05:54 jlec Exp $
-
-EAPI=2
-
-PYTHON_DEPEND="2:2.6"
-
-inherit cmake-utils fdo-mime multilib python
-
-DESCRIPTION="Desktop publishing (DTP) and layout program"
-HOMEPAGE="http://www.scribus.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~hppa ppc ppc64 ~sparc x86"
-IUSE="cairo debug +minimal +pdf spell"
-
-COMMON_DEPEND="
-       dev-libs/hyphen
-       dev-libs/libxml2
-       media-libs/fontconfig
-       media-libs/freetype:2
-       media-libs/lcms:0
-       media-libs/libpng:0
-       media-libs/tiff:0
-       net-print/cups
-       sys-libs/zlib
-       x11-libs/qt-core:4
-       x11-libs/qt-gui:4
-       virtual/jpeg
-       spell? ( app-text/aspell )
-       pdf? ( app-text/podofo )
-       cairo? ( x11-libs/cairo[X,svg] )"
-RDEPEND="${COMMON_DEPEND}
-       app-text/ghostscript-gpl"
-DEPEND="${COMMON_DEPEND}
-       dev-libs/boost"
-
-RESTRICT="mirror" #318643
-
-PATCHES=(
-       "${FILESDIR}/${PN}-1.3.5.1-system-hyphen.patch"
-       "${FILESDIR}/${PN}-1.3.6-podofo-0.8.0.patch"
-       )
-
-DOCS="AUTHORS ChangeLog* LINKS NEWS README TODO TRANSLATION"
-
-pkg_setup() {
-       python_set_active_version 2
-}
-
-src_configure() {
-       mycmakeargs=(
-               "-DHAVE_PYTHON=ON"
-               "-DPYTHON_INCLUDE_PATH=$(python_get_includedir)"
-               "-DPYTHON_LIBRARY=$(python_get_library)"
-               "-DWANT_NORPATH=ON"
-               "-DWANT_QTARTHUR=ON"
-               "-DWANT_QT3SUPPORT=OFF"
-               $(cmake-utils_use_has spell ASPELL)
-               $(cmake-utils_use_has pdf PODOFO)
-               $(cmake-utils_use_want cairo)
-               $(cmake-utils_use_want minimal NOHEADERINSTALL)
-               )
-
-       cmake-utils_src_configure
-}
-
-src_install() {
-       cmake-utils_src_install
-
-       doicon resources/icons/scribus.png
-       domenu scribus.desktop
-}
-
-pkg_postinst() {
-       fdo-mime_mime_database_update
-}
-
-pkg_postrm() {
-       fdo-mime_mime_database_update
-}
diff --git a/app-office/scribus/scribus-1.3.8.ebuild b/app-office/scribus/scribus-1.3.8.ebuild
deleted file mode 100644 (file)
index fc380b6..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-1.3.8.ebuild,v 1.4 2011/11/17 17:05:54 jlec Exp $
-
-EAPI=2
-
-PYTHON_DEPEND="2:2.6"
-
-inherit cmake-utils fdo-mime multilib python
-
-DESCRIPTION="Desktop publishing (DTP) and layout program"
-HOMEPAGE="http://www.scribus.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
-IUSE="cairo debug +minimal +pdf spell"
-
-COMMON_DEPEND="
-       dev-libs/hyphen
-       dev-libs/libxml2
-       media-libs/fontconfig
-       media-libs/freetype:2
-       media-libs/lcms:0
-       media-libs/libpng:0
-       media-libs/tiff:0
-       net-print/cups
-       sys-libs/zlib
-       x11-libs/qt-core:4
-       x11-libs/qt-gui:4
-       virtual/jpeg
-       spell? ( app-text/aspell )
-       pdf? ( app-text/podofo )
-       cairo? ( x11-libs/cairo[X,svg] )"
-RDEPEND="${COMMON_DEPEND}
-       app-text/ghostscript-gpl"
-DEPEND="${COMMON_DEPEND}
-       dev-libs/boost"
-
-PATCHES=(
-       "${FILESDIR}/${PN}-1.3.5.1-system-hyphen.patch"
-       )
-
-DOCS="AUTHORS ChangeLog* LINKS NEWS README TODO TRANSLATION"
-
-pkg_setup() {
-       python_set_active_version 2
-}
-
-src_configure() {
-       mycmakeargs=(
-               "-DHAVE_PYTHON=ON"
-               "-DPYTHON_INCLUDE_PATH=$(python_get_includedir)"
-               "-DPYTHON_LIBRARY=$(python_get_library)"
-               "-DWANT_NORPATH=ON"
-               "-DWANT_QTARTHUR=ON"
-               "-DWANT_QT3SUPPORT=OFF"
-               $(cmake-utils_use_has spell ASPELL)
-               $(cmake-utils_use_has pdf PODOFO)
-               $(cmake-utils_use_want cairo)
-               $(cmake-utils_use_want minimal NOHEADERINSTALL)
-               )
-
-       cmake-utils_src_configure
-}
-
-src_install() {
-       cmake-utils_src_install
-
-       doicon resources/icons/scribus.png
-       domenu scribus.desktop
-}
-
-pkg_postinst() {
-       fdo-mime_mime_database_update
-}
-
-pkg_postrm() {
-       fdo-mime_mime_database_update
-}
diff --git a/app-office/scribus/scribus-1.3.9-r1.ebuild b/app-office/scribus/scribus-1.3.9-r1.ebuild
deleted file mode 100644 (file)
index 5a20696..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-1.3.9-r1.ebuild,v 1.2 2011/11/17 17:05:54 jlec Exp $
-
-EAPI=2
-
-PYTHON_DEPEND="2:2.6"
-
-inherit cmake-utils fdo-mime multilib python
-
-DESCRIPTION="Desktop publishing (DTP) and layout program"
-HOMEPAGE="http://www.scribus.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
-IUSE="cairo debug examples +minimal +pdf spell templates"
-
-COMMON_DEPEND="
-       dev-libs/hyphen
-       dev-libs/libxml2
-       media-libs/fontconfig
-       media-libs/freetype:2
-       media-libs/lcms:0
-       media-libs/libpng:0
-       media-libs/tiff:0
-       net-print/cups
-       sys-libs/zlib
-       x11-libs/qt-core:4
-       x11-libs/qt-gui:4
-       virtual/jpeg
-       spell? ( app-text/aspell )
-       pdf? ( app-text/podofo )
-       cairo? ( x11-libs/cairo[X,svg] )"
-RDEPEND="${COMMON_DEPEND}
-       app-text/ghostscript-gpl"
-DEPEND="${COMMON_DEPEND}
-       dev-libs/boost"
-
-PATCHES=(
-       "${FILESDIR}/${PN}-1.3.5.1-system-hyphen.patch"
-       )
-
-DOCS="AUTHORS ChangeLog* LINKS NEWS README TODO TRANSLATION"
-
-pkg_setup() {
-       python_set_active_version 2
-}
-
-src_prepare() {
-       use templates || \
-               sed '/ADD_SUBDIRECTORY(resources\/templates)/d' -i CMakeLists.txt
-       use examples || \
-               sed '/ADD_SUBDIRECTORY(samples)/d' -i scribus/plugins/scriptplugin/CMakeLists.txt
-       base_src_prepare
-}
-
-src_configure() {
-       mycmakeargs=(
-               "-DHAVE_PYTHON=ON"
-               "-DPYTHON_INCLUDE_PATH=$(python_get_includedir)"
-               "-DPYTHON_LIBRARY=$(python_get_library)"
-               "-DWANT_NORPATH=ON"
-               "-DWANT_QTARTHUR=ON"
-               "-DWANT_QT3SUPPORT=OFF"
-               $(cmake-utils_use_has spell ASPELL)
-               $(cmake-utils_use_has pdf PODOFO)
-               $(cmake-utils_use_want cairo)
-               $(cmake-utils_use_want minimal NOHEADERINSTALL)
-               )
-
-       cmake-utils_src_configure
-}
-
-src_install() {
-       cmake-utils_src_install
-
-       doicon resources/icons/scribus.png
-       domenu scribus.desktop
-}
-
-pkg_postinst() {
-       fdo-mime_mime_database_update
-}
-
-pkg_postrm() {
-       fdo-mime_mime_database_update
-}
similarity index 56%
rename from app-office/scribus/scribus-1.4.0_rc6.ebuild
rename to app-office/scribus/scribus-1.4.0.ebuild
index 6876db6f0d84e52401a83a8b062ddd618a85ab0a..f3381d2a1a9e8448831e206b5414c60afe54f4d3 100644 (file)
@@ -1,24 +1,26 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-1.4.0_rc6.ebuild,v 1.2 2011/11/17 17:05:54 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-1.4.0.ebuild,v 1.1 2012/01/04 09:11:02 jlec Exp $
 
-EAPI=3
+EAPI=4
 
-PYTHON_DEPEND="2:2.6"
+PYTHON_DEPEND="2"
 
 inherit cmake-utils fdo-mime multilib python
 
-MY_P="${P/_/.}"
-
 DESCRIPTION="Desktop publishing (DTP) and layout program"
 HOMEPAGE="http://www.scribus.net/"
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
 IUSE="cairo debug examples +minimal +pdf spell templates"
 
+# a=$(ls resources/translations/po/scribus.*ts | sed -e 's:\.: :g' | awk '{print $2}'); echo ${a}
+IUSE_LINGUAS=" af ar bg br ca cs_CZ cy da_DK de_1901 de_CH de 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_BR pt ru sa sk_SK sl sq sr sv th_TH tr uk zh_CN zh_TW"
+IUSE+=" ${IUSE_LINGUAS// / linguas_}"
+
 COMMON_DEPEND="
        dev-libs/hyphen
        dev-libs/libxml2
@@ -44,48 +46,54 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.4.0_rc5-docs.patch
        )
 
-S=${WORKDIR}/${MY_P}
-
 pkg_setup() {
        python_set_active_version 2
+       python_pkg_setup
 }
 
 src_prepare() {
-       use templates || \
-               sed '/ADD_SUBDIRECTORY(resources\/templates)/d' -i CMakeLists.txt
-       use examples || \
-               sed '/ADD_SUBDIRECTORY(samples)/d' -i scribus/plugins/scriptplugin/CMakeLists.txt
+       if use templates; then
+               sed '/ADD_SUBDIRECTORY(resources\/templates)/d' -i CMakeLists.txt || die
+       fi
+       if use examples; then
+               sed '/ADD_SUBDIRECTORY(samples)/d' -i scribus/plugins/scriptplugin/CMakeLists.txt || die
+       fi
 
-sed \
-       -e '1i#define OF(x) x' \
-       -i scribus/fileunzip.cpp scribus/unzip.h scribus/ioapi.h || die
+       sed \
+               -e '1i#define OF(x) x' \
+               -i scribus/fileunzip.cpp scribus/unzip.h scribus/ioapi.h || die
 
        base_src_prepare
 }
 
 src_configure() {
-       mycmakeargs=(
-               "-DHAVE_PYTHON=ON"
-               "-DPYTHON_INCLUDE_PATH=$(python_get_includedir)"
-               "-DPYTHON_LIBRARY=$(python_get_library)"
-               "-DWANT_NORPATH=ON"
-               "-DWANT_QTARTHUR=ON"
-               "-DWANT_QT3SUPPORT=OFF"
-               "-DGENTOOVERSION=${PVR}"
+       local lang langs
+       for lang in ${IUSE_LINGUAS}; do
+               use linguas_${lang} && langs+=",${lang}"
+       done
+
+       local mycmakeargs=(
+               -DHAVE_PYTHON=ON
+               -DPYTHON_INCLUDE_PATH=$(python_get_includedir)
+               -DPYTHON_LIBRARY=$(python_get_library)
+               -DWANT_NORPATH=ON
+               -DWANT_QTARTHUR=ON
+               -DWANT_QT3SUPPORT=OFF
+               -DGENTOOVERSION=${PVR}
+               -DWANT_GUI_LANG=${langs#,}
                $(cmake-utils_use_has spell ASPELL)
                $(cmake-utils_use_has pdf PODOFO)
                $(cmake-utils_use_want cairo)
                $(cmake-utils_use_want minimal NOHEADERINSTALL)
                )
-
        cmake-utils_src_configure
 }
 
 src_install() {
        cmake-utils_src_install
 
-       mv "${ED}"/usr/share/doc/${PF}/{en,html}
-       ln -sf html "${ED}"/usr/share/doc/${PF}/en
+       mv "${ED}"/usr/share/doc/${PF}/{en,html} || die
+       ln -sf html "${ED}"/usr/share/doc/${PF}/en || die
 
        doicon resources/icons/scribus.png
        domenu scribus.desktop
diff --git a/app-office/scribus/scribus-1.4.0_rc5.ebuild b/app-office/scribus/scribus-1.4.0_rc5.ebuild
deleted file mode 100644 (file)
index a40bf8a..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-1.4.0_rc5.ebuild,v 1.5 2011/11/17 17:05:54 jlec Exp $
-
-EAPI=3
-
-PYTHON_DEPEND="2:2.6"
-
-inherit cmake-utils fdo-mime multilib python
-
-MY_P="${P/_/.}"
-
-DESCRIPTION="Desktop publishing (DTP) and layout program"
-HOMEPAGE="http://www.scribus.net/"
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
-IUSE="cairo debug examples +minimal +pdf spell templates"
-
-COMMON_DEPEND="
-       dev-libs/hyphen
-       dev-libs/libxml2
-       media-libs/fontconfig
-       media-libs/freetype:2
-       media-libs/lcms:2
-       media-libs/libpng:0
-       media-libs/tiff:0
-       net-print/cups
-       sys-libs/zlib
-       x11-libs/qt-core:4
-       x11-libs/qt-gui:4
-       virtual/jpeg
-       spell? ( app-text/aspell )
-       pdf? ( app-text/podofo )
-       cairo? ( x11-libs/cairo[X,svg] )"
-RDEPEND="${COMMON_DEPEND}
-       app-text/ghostscript-gpl"
-DEPEND="${COMMON_DEPEND}
-       dev-libs/boost"
-
-PATCHES=(
-       "${FILESDIR}"/${P}-docs.patch
-       )
-
-S=${WORKDIR}/${MY_P}
-
-pkg_setup() {
-       python_set_active_version 2
-}
-
-src_prepare() {
-       use templates || \
-               sed '/ADD_SUBDIRECTORY(resources\/templates)/d' -i CMakeLists.txt
-       use examples || \
-               sed '/ADD_SUBDIRECTORY(samples)/d' -i scribus/plugins/scriptplugin/CMakeLists.txt
-
-sed \
-       -e '1i#define OF(x) x' \
-       -i scribus/fileunzip.cpp scribus/unzip.h scribus/ioapi.h || die
-
-       base_src_prepare
-}
-
-src_configure() {
-       mycmakeargs=(
-               "-DHAVE_PYTHON=ON"
-               "-DPYTHON_INCLUDE_PATH=$(python_get_includedir)"
-               "-DPYTHON_LIBRARY=$(python_get_library)"
-               "-DWANT_NORPATH=ON"
-               "-DWANT_QTARTHUR=ON"
-               "-DWANT_QT3SUPPORT=OFF"
-               "-DGENTOOVERSION=${PVR}"
-               $(cmake-utils_use_has spell ASPELL)
-               $(cmake-utils_use_has pdf PODOFO)
-               $(cmake-utils_use_want cairo)
-               $(cmake-utils_use_want minimal NOHEADERINSTALL)
-               )
-
-       cmake-utils_src_configure
-}
-
-src_install() {
-       cmake-utils_src_install
-
-       mv "${ED}"/usr/share/doc/${PF}/{en,html}
-       ln -sf html "${ED}"/usr/share/doc/${PF}/en
-
-       doicon resources/icons/scribus.png
-       domenu scribus.desktop
-}
-
-pkg_postinst() {
-       fdo-mime_mime_database_update
-}
-
-pkg_postrm() {
-       fdo-mime_mime_database_update
-}