diff options
author | Justin Lecher <jlec@gentoo.org> | 2013-01-21 16:40:03 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2013-01-21 16:40:03 +0000 |
commit | a86bd4f80b1ca89fd8effe5cdf9a76c20bb0a778 (patch) | |
tree | e8ea6860f409a13dca9c93007cb9d6f7e7c8fce2 /app-office/scribus | |
parent | Stable for sparc, wrt bug #450940 (diff) | |
download | historical-a86bd4f80b1ca89fd8effe5cdf9a76c20bb0a778.tar.gz historical-a86bd4f80b1ca89fd8effe5cdf9a76c20bb0a778.tar.bz2 historical-a86bd4f80b1ca89fd8effe5cdf9a76c20bb0a778.zip |
app-office/scribus: Version Bump
Package-Manager: portage-2.2.0_alpha158/cvs/Linux x86_64
Manifest-Sign-Key: 0x8009D6F070EB7916
Diffstat (limited to 'app-office/scribus')
-rw-r--r-- | app-office/scribus/ChangeLog | 10 | ||||
-rw-r--r-- | app-office/scribus/Manifest | 17 | ||||
-rw-r--r-- | app-office/scribus/files/scribus-1.4.2-docs.patch | 29 | ||||
-rw-r--r-- | app-office/scribus/metadata.xml | 47 | ||||
-rw-r--r-- | app-office/scribus/scribus-1.4.2.ebuild | 122 | ||||
-rw-r--r-- | app-office/scribus/scribus-1.4.9999.ebuild | 61 |
6 files changed, 223 insertions, 63 deletions
diff --git a/app-office/scribus/ChangeLog b/app-office/scribus/ChangeLog index f64eb0cf2a45..bbfc64df06da 100644 --- a/app-office/scribus/ChangeLog +++ b/app-office/scribus/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-office/scribus -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/ChangeLog,v 1.168 2012/12/10 08:07:51 jlec Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/ChangeLog,v 1.169 2013/01/21 16:39:29 jlec Exp $ + +*scribus-1.4.2 (21 Jan 2013) + + 21 Jan 2013; Justin Lecher <jlec@gentoo.org> +scribus-1.4.2.ebuild, + +files/scribus-1.4.2-docs.patch, scribus-1.4.9999.ebuild, metadata.xml: + Version Bump 10 Dec 2012; Justin Lecher <jlec@gentoo.org> -scribus-1.4.0-r2.ebuild, -scribus-1.4.1.ebuild: diff --git a/app-office/scribus/Manifest b/app-office/scribus/Manifest index c01104000fab..77a46ece5db3 100644 --- a/app-office/scribus/Manifest +++ b/app-office/scribus/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 +Hash: SHA512 AUX scribus-1.3.5.1-system-hyphen.patch 3754 SHA256 f17ef356e0c096b71e83048a4c97b53e455a73af7f25bc9048136c8000744e67 SHA512 0dae24abfc63253d3979398073645a510a872cec685c83d2c854221c9537b86c4285e248b42fa8e09aed5e8b8b83b5365eec9b4769db6a513d3010536b832d81 WHIRLPOOL 16b3101ca254f96507e1bc9675dc871d6b766a8f0a780b28040e0ceab88b42c2729347da57e110ba4c60b7e6773d941406b86003d6fc372407ff17969b58a8f5 AUX scribus-1.3.6-podofo-0.8.0.patch 1749 SHA256 498e2ec592175123b54cc090b1b839c8452c1a1a768d9b29737c5386aad963b7 SHA512 b3215b9028875288c1848e69c00dbc84b5375b29954394af75291fe9352950c45412f9471becd9d38b9dbea7c4a66899ddb1a0021d557541056185fc420a51d6 WHIRLPOOL 6ef3d13307334fe2a9338d4088b88fe7d43303e6f12e4d93eb2b03a51c70ef8985915a7a653a61e740f825009032cbb7dbdf13ad3371b476dc90320e6b3a303c @@ -7,17 +7,20 @@ AUX scribus-1.3.9-cups-1.5.patch 840 SHA256 1bd000e5d7813b484727a468c9b49f85662a AUX scribus-1.4.0-export.patch 786 SHA256 f7e1a9db36f65b77282d728a0aaf064fe8ea939fb0cdb8184e3de93b350c6379 SHA512 3010f4a785c61b7bc81f7bf27914cbddb4a3b6169576af42b89cb4bb65dde0074766ded077d38fd289392489ffdeb787b5d53f3dc2676d53484cd40f03a5d0db WHIRLPOOL 70d7deae905c3145a84cb8822d32a5a1551b6da83f371ae5b544dddca5e4fffd5d54a0e6099a5d9b58a927ee807d65eb6442382a5daf7c1e0c1e7a40c6101065 AUX scribus-1.4.0-minizip.patch 1891 SHA256 dcbe79335a59b7238d6866f7c92757ffb5ac1ef26ff9f146b4fb702814c83dd7 SHA512 99feefb8e4ba9ae903e6a7a68b4cd497572ef254b550c864135e20392902e3595ea4414916474d5e80ceabc66e6cc5fac09af41955cbb2ba8e8d41480009bd86 WHIRLPOOL bc0d8086b146f867ddd807b1bcfa911e678eb13eb7833370871730b46dbf8cd94b93f58157b940da36c1ba9c439335cd952aa1163866e8b4aab2f6964071d9c3 AUX scribus-1.4.0_rc5-docs.patch 828 SHA256 50c56976bcc2e2a7d04ee62b8c2398d91137360f69e95910c6f2a01b49c8595f SHA512 d0d4230a5bf848ed02efd6dbc5c48fd34bc4a68b97f6434577d221fa5bafb0bc74b4c77a45e8a21ba40f4ae6e16c0d1f65cde5be9d4f40e47344d49c3dee80ab WHIRLPOOL 3c6c4d330bfb892be4081f45f4f39fda3249cdfa6ead8f99ff38d9abca628dde1caeda4fe96febae25e979e88e86f9ccbc6b94942cccec4d0ef5bc0a66df99fe +AUX scribus-1.4.2-docs.patch 814 SHA256 5676964e58f241666a0b07513e55055e9badc562409493714e75aef750e4e00f SHA512 bf26fdf032b2e6d0ae1e11dcfa5f75ba36a1561868b2161afece7a993536c49353f6b53841ab3aa5749ff5b474df72ef87345c496719c4d609b8c1345aa8efe1 WHIRLPOOL 67734220b79f03dfba8cb8a796475e1f23c67c1c0da53a4c5d1f6315dd99ca2ed4a66cf1dc2c1bb3ac11fd92e97f87264a0fc0ebffa5327673fc62b60328fa9f AUX scribus-1.5.0-docs.patch 751 SHA256 7b34557bc506b9b2f6d2c8d968e619d080ed762586a9eb1c3480d7b2cbc23586 SHA512 d0de059a60c8a3a9545d671f819072a45b68f5955987652eda282dc9edbb5eeaf26a49f7dd06bc00c64bf2d71644e73129594760c8ddfdc1eee7be4dc4a95940 WHIRLPOOL 7c30d33e2a4e40748e1db79064f51184addda67cb845fd2f8bccb83aafdc46dd82a5c02580d66e75ae4f3de99f3ca6710ecd5b4cee61a9f40bf87391d16c78d0 DIST scribus-1.4.1.tar.xz 63039820 SHA256 6853fc40cd178d0dcefcc9305fba6824bbe7fd915b0eb277d742b13297f8c7d8 SHA512 726c5f05644e573c13e741ed356ce5bd8366b824c71e587167b9c73f5f1ab6eeb7c78f26f2146cbaf09921fd583b1758dc1d3cf1d1c79d1bb8be586df88f055c WHIRLPOOL 0592405daa4b092d2861c6697a835d3564b30fa4fcbd50bdb5d743269ac8113f4dd5d8f187dd1fdcdd2358b28772905f46c3737bea79dfb5f1120b107bfc8c30 +DIST scribus-1.4.2.tar.xz 64405272 SHA256 b951d47913e800b31675fec94ae4e81dc2ee0247506a9218211db62da6386563 SHA512 17c65b39974bfb54d494afd687fc3284350b68da3d4c41cd874101a26d42a03a55b1110d3e14bda25ced1078c825576d8de61c8813a5026a680173a7e74bc63a WHIRLPOOL 570976044e7cfd3386dca5f8895f9b147bf2ee1610d70a133731b5b0a0f75fe5704b9c28ea059f14d1c4ca8947b9526edbef2e7ff4a685ca3e4f4ca6f85590f6 EBUILD scribus-1.4.1-r1.ebuild 3288 SHA256 dc82f08ed029d258981f9c3c1bd85ff9cc4328df6015d4e822ee9ec23736c5eb SHA512 a9df45a249e748f414c59eddd4fd3dca7f9b1fc2329707d077e608f21b7ad954c41988b48f88491ce97978b51c5bb0a600f011a57f968e8e67b0052df7b92bd9 WHIRLPOOL 01341c5efa48fe8c7f373d52bfabb119a0433df298c03dbf31a83fba518751018690e669c2e18870a5ebc1f8439d94f3450d6ab62d8d0c92542ae08128e8300a -EBUILD scribus-1.4.9999.ebuild 3208 SHA256 15f7a0e9d47c6b54a8374940a0fcd78d1e2957fe971ed79ead34acb3c130c9ad SHA512 94de4582eaddd98991ce30a8d95ca4ceaf63737111cf89c60f922338346698e4df5e6fdc42caa9b8ffdfb5b6937c081a777df3dfa763331d953b93aa70377d3b WHIRLPOOL d96a157a6593abe93387d7dc00029b00ce1c948488874b4bf379fb4756f13a94b83fb41ae682c1885eb565c7e7fdf2cefed70e8f809b217aeeee4a7a9caf26cb +EBUILD scribus-1.4.2.ebuild 3253 SHA256 e18e303415125099d10d24a77ec2d9b73463ec6a99375fc73c4fcbf38e0a90fd SHA512 6de0ec9c8eb478297f0e29d606a4382450769b0d9814a6f1da636ad09c4cd6021a7ca53cdc072e29f38d54e498063e8e0396684fa67b122ccab842fc458f7df2 WHIRLPOOL 96168c432b40cd03ffee844fc9453007dc4b28a81d40fd58a5ca87743c0dbb1aa2c9fb56c7bee8ff91010e762ba6797bf689ab96ba2a08baa0e771afa4fe079f +EBUILD scribus-1.4.9999.ebuild 3330 SHA256 13eba401d8996eb438bdd39243443f1025451841d0309188c80264e29780b5b0 SHA512 370310baf1f6a9799a94349c6a7275539462f64f0607773dc38e916bb3694db89a640c731b59976674f39c47e8e6c127a0e92130204135d7778dd3beea3ff60c WHIRLPOOL 5cf3472d0f2718a55eeb16481bc928f9cd70f068329aab5ed913a312f7a0bad328a2c9922fb4461ca36ef4fad3598db11f02204034b0d9d004b812f89ff663e4 EBUILD scribus-9999.ebuild 2969 SHA256 741e9969b3cd274e64bed59bd47d0cf8c2f571932373c04f854baa7501028e2b SHA512 ceeed85ab5e7cce9c63693c35df68706fa2cd2561dfb79a2a8c67a2ca150d5fe27ad68d6dc8b635f8a615746cb825a8d5be44b7f5f9823a0627d76025f64c641 WHIRLPOOL 4860cef803c7c22d03b913e5d3065a481b69117bb599fb280a0d0119410139078d2ff167241965b93f20bdee3018e05ae095662619f020bc2cf421ffa54c85d4 -MISC ChangeLog 21847 SHA256 5de7c037e58c7c587ce83fe25b7923348c0726439222ba973f07a432a88edb37 SHA512 99fea7829cc2ee02c0708b917fa69eb05201ee4cb4dd40112a1e004c8e71edeca5851e13042fe251e202bc6df96c676924bb6979cfeef9efb351db8839aab6e0 WHIRLPOOL 2f4a47f6287f1407b374649957f9aa7d4b8d6be634c7f0124bd3f44031d399ba7c86a2ad5816bf3cce69f26d211566ca636e01a3abb0e4117b2e22152f202fd2 -MISC metadata.xml 1137 SHA256 794d317abd9329bff636e333c582e7fd79a8f4cccfe8d606d960eb2aebb22ccc SHA512 c348d7444b9062bce4b8237d61158c1964e3b6fe9acde894cad0371fc2f39cfe5eb8cb45ea4c79a2b99683568cf32d697f1d6bbdd7218fb1869afed39cef3abb WHIRLPOOL eed011b1b93bb12cd14b5cf59357d343a6ff7eb91b5f907597bbee9c172e6474dca3c95896d4828e3a1e90357d34b557eaa7e42a12cde7e36a95998fb4e5169f +MISC ChangeLog 22037 SHA256 e3147c154592a362895e3b18d200bec7e0deae4ea03aaff14709f799d9b808f4 SHA512 a70ad48af278ebdd04ec5b36b93798a83dca2c25afad2767f289d1fa00d8aa79b56349542d5378c61250b8459d3eadfd5c10953d79dcc83eff30f17ea2967d59 WHIRLPOOL 02442180c9b624b530a23a6ed4425ec0cbd48c5c382b841aae1138b691eb9d08634458cc7fd80e73013310ffedb8c89d548e980efca5b15be62e5554dbc93d46 +MISC metadata.xml 1277 SHA256 fb0e34437244bdb8587310dbcee16c9f9763b94a58a4a81930dc4b601043a4e7 SHA512 8c7bc4376beff9cdbfc4e7776915bfb8886aaebbbff60331b543a3fe65448ea0141efaf1753ceba708b5250932aa72baa9f02d9dc016aa1ffc464e7fd861304c WHIRLPOOL 1bee168f9d3febd1375f5741071d6ebb5eed106bf3a47815bb09c9a9d1e8ff9a10e86f829df4113f67f0c385c8a2fe4750705ec05377283b717307e494d18226 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iEYEAREIAAYFAlDFmFgACgkQgAnW8HDreRa1aQCgn/Th3VdMIGwhCwzt+0/I2x7g -Z4wAnRVFs6gs911CVMzxT3a/0YLZ3S79 -=0gO+ +iEYEAREKAAYFAlD9b2MACgkQgAnW8HDreRb4jgCfR3jz1BK424ENGvlPVWVbWFYy +DbsAoMWPRfBqcztBAhle7k3gPQCIt41p +=1r07 -----END PGP SIGNATURE----- diff --git a/app-office/scribus/files/scribus-1.4.2-docs.patch b/app-office/scribus/files/scribus-1.4.2-docs.patch new file mode 100644 index 000000000000..977bfe0e2559 --- /dev/null +++ b/app-office/scribus/files/scribus-1.4.2-docs.patch @@ -0,0 +1,29 @@ + CMakeLists.txt | 4 +--- + 1 files changed, 1 insertions(+), 3 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3f34048..4880594 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -267,7 +267,7 @@ ELSE (WIN32 OR OS2) + SET(DOCDIR "share/doc/${MAIN_DIR_NAME}${TAG_VERSION}/") + ELSE(TAG_VERSION OR BUILD_OSX_BUNDLE) + IF(NOT WANT_VERSIONING) +- SET(DOCDIR "share/doc/${MAIN_DIR_NAME}/") ++ SET(DOCDIR "share/doc/${MAIN_DIR_NAME}-${GENTOOVERSION}/") + ELSE(NOT WANT_VERSIONING) + SET(DOCDIR "share/doc/${MAIN_DIR_NAME}-${VERSION}/") + ENDIF(NOT WANT_VERSIONING) +@@ -801,12 +801,11 @@ INSTALL(FILES + BUILDING + ChangeLog + ChangeLogSVN +- COPYING + LINKS + NEWS + PACKAGING + README + TODO + TRANSLATION + DESTINATION ${DOCDIR} + ) diff --git a/app-office/scribus/metadata.xml b/app-office/scribus/metadata.xml index 08bff7ce5327..543beb3061d4 100644 --- a/app-office/scribus/metadata.xml +++ b/app-office/scribus/metadata.xml @@ -1,27 +1,28 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <herd>desktop-misc</herd> - <maintainer> - <email>hanno@gentoo.org</email> - <name>Hanno Boeck</name> - </maintainer> - <maintainer> - <email>jlec@gentoo.org</email> - <name>Justin Lecher</name> - </maintainer> - <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> + <herd>desktop-misc</herd> + <maintainer> + <email>hanno@gentoo.org</email> + <name>Hanno Boeck</name> + </maintainer> + <maintainer> + <email>jlec@gentoo.org</email> + <name>Justin Lecher</name> + </maintainer> + <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="hunspell">Enable support for spell checking with <pkg>app-text/hunspell</pkg></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.4.2.ebuild b/app-office/scribus/scribus-1.4.2.ebuild new file mode 100644 index 000000000000..a612db249804 --- /dev/null +++ b/app-office/scribus/scribus-1.4.2.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-1.4.2.ebuild,v 1.1 2013/01/21 16:39:29 jlec Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7} ) + +inherit cmake-utils fdo-mime multilib python-single-r1 + +DESCRIPTION="Desktop publishing (DTP) and layout program" +HOMEPAGE="http://www.scribus.net/" +SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="cairo debug examples hunspell +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 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" +IUSE+=" ${IUSE_LINGUAS// / linguas_}" + +COMMON_DEPEND=" + dev-libs/boost + 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[minizip] + 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}" + +PATCHES=( + "${FILESDIR}"/${P}-docs.patch + "${FILESDIR}"/${PN}-1.4.0-minizip.patch + ) + +src_prepare() { + cat > cmake/modules/FindZLIB.cmake <<- EOF + find_package(PkgConfig) + pkg_check_modules(ZLIB minizip zlib) + SET( ZLIB_LIBRARY \${ZLIB_LIBRARIES} ) + SET( ZLIB_INCLUDE_DIR \${ZLIB_INCLUDE_DIRS} ) + MARK_AS_ADVANCED( ZLIB_LIBRARY ZLIB_INCLUDE_DIR ) + EOF + + rm scribus/{ioapi,unzip}.[ch] || die + + sed \ + -e 's:\(${CMAKE_INSTALL_PREFIX}\):./\1:g' \ + -i resources/templates/CMakeLists.txt || die + + base_src_prepare +} + +src_configure() { + local lang langs + for lang in ${IUSE_LINGUAS}; do + if use linguas_${lang}; then + langs+=",${lang}" + else + sed -e "/${lang}/d" -i scribus/doc/CMakeLists.txt || die + fi + done + + local mycmakeargs=( + -DHAVE_PYTHON=ON + -DPYTHON_INCLUDE_PATH=$(python_get_includedir) + -DPYTHON_LIBRARY="${EPREFIX}/usr/$(get_libdir)/lib${EPYTHON}.so" + -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_use_want debug DEBUG) + ) + use examples || mycmakeargs+=( -DWANT_NOEXAMPLES=ON) + use templates || mycmakeargs+=( -DWANT_NOTEMPLATES=ON) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + local lang file + for lang in ${IUSE_LINGUAS}; do + file="${ED}"/usr/share/scribus/translations/scribus.${lang}.qm + if ! use linguas_${lang} && [[ -f "${file}" ]]; then + rm "${file}" || die + fi + done + + mv "${ED}"/usr/share/doc/${PF}/{en,html} || die + ln -sf html "${ED}"/usr/share/doc/${PF}/en || die + docompress -x /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 +} diff --git a/app-office/scribus/scribus-1.4.9999.ebuild b/app-office/scribus/scribus-1.4.9999.ebuild index 1d38ab33717e..8d02c7ac22f2 100644 --- a/app-office/scribus/scribus-1.4.9999.ebuild +++ b/app-office/scribus/scribus-1.4.9999.ebuild @@ -1,29 +1,30 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-1.4.9999.ebuild,v 1.2 2012/04/30 07:45:10 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-1.4.9999.ebuild,v 1.3 2013/01/21 16:39:29 jlec Exp $ -EAPI=4 +EAPI=5 -PYTHON_DEPEND="2" +PYTHON_COMPAT=( python{2_6,2_7} ) -inherit cmake-utils fdo-mime multilib python subversion +inherit cmake-utils fdo-mime multilib python-single-r1 subversion DESCRIPTION="Desktop publishing (DTP) and layout program" HOMEPAGE="http://www.scribus.net/" -#SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" +#SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" SRC_URI="" ESVN_REPO_URI="svn://scribus.net/branches/Version14x/Scribus" LICENSE="GPL-2" SLOT="0" KEYWORDS="" -IUSE="cairo debug examples +minimal +pdf spell templates" +IUSE="cairo debug examples hunspell +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_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" IUSE+=" ${IUSE_LINGUAS// / linguas_}" COMMON_DEPEND=" + dev-libs/boost dev-libs/hyphen dev-libs/libxml2 media-libs/fontconfig @@ -41,19 +42,13 @@ COMMON_DEPEND=" cairo? ( x11-libs/cairo[X,svg] )" RDEPEND="${COMMON_DEPEND} app-text/ghostscript-gpl" -DEPEND="${COMMON_DEPEND} - dev-libs/boost" +DEPEND="${COMMON_DEPEND}" PATCHES=( - "${FILESDIR}"/${PN}-1.4.0_rc5-docs.patch + "${FILESDIR}"/${PN}-1.4.2-docs.patch "${FILESDIR}"/${PN}-1.4.0-minizip.patch ) -pkg_setup() { - python_set_active_version 2 - python_pkg_setup -} - src_prepare() { cat > cmake/modules/FindZLIB.cmake <<- EOF find_package(PkgConfig) @@ -65,12 +60,9 @@ src_prepare() { rm scribus/{ioapi,unzip}.[ch] || die - 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 's:\(${CMAKE_INSTALL_PREFIX}\):./\1:g' \ + -i resources/templates/CMakeLists.txt || die base_src_prepare subversion_src_prepare @@ -79,13 +71,17 @@ src_prepare() { src_configure() { local lang langs for lang in ${IUSE_LINGUAS}; do - use linguas_${lang} && langs+=",${lang}" + if use linguas_${lang}; then + langs+=",${lang}" + else + sed -e "/${lang}/d" -i scribus/doc/CMakeLists.txt || die + fi done local mycmakeargs=( -DHAVE_PYTHON=ON -DPYTHON_INCLUDE_PATH=$(python_get_includedir) - -DPYTHON_LIBRARY=$(python_get_library) + -DPYTHON_LIBRARY="${EPREFIX}/usr/$(get_libdir)/lib${EPYTHON}.so" -DWANT_NORPATH=ON -DWANT_QTARTHUR=ON -DWANT_QT3SUPPORT=OFF @@ -97,12 +93,22 @@ src_configure() { $(cmake-utils_use_want minimal NOHEADERINSTALL) $(cmake-utils_use_want debug DEBUG) ) + use examples || mycmakeargs+=( -DWANT_NOEXAMPLES=ON) + use templates || mycmakeargs+=( -DWANT_NOTEMPLATES=ON) cmake-utils_src_configure } src_install() { cmake-utils_src_install + local lang file + for lang in ${IUSE_LINGUAS}; do + file="${ED}"/usr/share/scribus/translations/scribus.${lang}.qm + if ! use linguas_${lang} && [[ -f "${file}" ]]; then + rm "${file}" || die + fi + done + mv "${ED}"/usr/share/doc/${PF}/{en,html} || die ln -sf html "${ED}"/usr/share/doc/${PF}/en || die docompress -x /usr/share/doc/${PF}/en @@ -110,13 +116,6 @@ src_install() { domenu scribus.desktop } -pkg_preinst() { - # 399595 - rm -vf "${ED}"/usr/share/doc/${PF}/en* || die - ln -sf html "${ED}"/usr/share/doc/${PF}/en - subversion_pkg_preinst -} - pkg_postinst() { fdo-mime_mime_database_update } |