diff options
author | Justin Lecher <jlec@gentoo.org> | 2014-08-14 07:15:15 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2014-08-14 07:15:15 +0000 |
commit | 68739d17ecc3474dbf413bbdb65c3ba5095f09cf (patch) | |
tree | 56bb0d7b26ce2a7b4952005113c000266238469f /app-office | |
parent | app-office/scribus: Drop old (diff) | |
download | gentoo-2-68739d17ecc3474dbf413bbdb65c3ba5095f09cf.tar.gz gentoo-2-68739d17ecc3474dbf413bbdb65c3ba5095f09cf.tar.bz2 gentoo-2-68739d17ecc3474dbf413bbdb65c3ba5095f09cf.zip |
app-office/scribus: Drop old, update live ebuilds
(Portage version: 2.2.12/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key B9D4F231BD1558AB!)
Diffstat (limited to 'app-office')
-rw-r--r-- | app-office/scribus/ChangeLog | 7 | ||||
-rw-r--r-- | app-office/scribus/files/scribus-1.5.0-docs.patch | 24 | ||||
-rw-r--r-- | app-office/scribus/metadata.xml | 1 | ||||
-rw-r--r-- | app-office/scribus/scribus-1.4.3.ebuild | 144 | ||||
-rw-r--r-- | app-office/scribus/scribus-1.4.9999.ebuild | 45 | ||||
-rw-r--r-- | app-office/scribus/scribus-9999.ebuild | 40 |
6 files changed, 221 insertions, 40 deletions
diff --git a/app-office/scribus/ChangeLog b/app-office/scribus/ChangeLog index 0f9634d2b3fb..aa3cd4b0f7a6 100644 --- a/app-office/scribus/ChangeLog +++ b/app-office/scribus/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-office/scribus # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/ChangeLog,v 1.191 2014/08/14 06:24:56 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/ChangeLog,v 1.192 2014/08/14 07:15:15 jlec Exp $ + + 14 Aug 2014; Justin Lecher <jlec@gentoo.org> +scribus-1.4.3.ebuild, + scribus-1.4.9999.ebuild, scribus-9999.ebuild, files/scribus-1.5.0-docs.patch, + metadata.xml: + Drop old, update live ebuilds 14 Aug 2014; Justin Lecher <jlec@gentoo.org> -scribus-1.4.1-r1.ebuild, -scribus-1.4.3.ebuild: diff --git a/app-office/scribus/files/scribus-1.5.0-docs.patch b/app-office/scribus/files/scribus-1.5.0-docs.patch index 8e342cd612f2..831323847314 100644 --- a/app-office/scribus/files/scribus-1.5.0-docs.patch +++ b/app-office/scribus/files/scribus-1.5.0-docs.patch @@ -1,11 +1,11 @@ - CMakeLists.txt | 4 +--- - 1 files changed, 1 insertions(+), 3 deletions(-) + CMakeLists.txt | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt -index 3f34048..4880594 100644 +index c97080b..46742c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -267,7 +267,7 @@ ELSE (WIN32 OR OS2) +@@ -244,7 +244,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) @@ -14,11 +14,11 @@ index 3f34048..4880594 100644 ELSE(NOT WANT_VERSIONING) SET(DOCDIR "share/doc/${MAIN_DIR_NAME}-${VERSION}/") ENDIF(NOT WANT_VERSIONING) -@@ -801,7 +801,6 @@ INSTALL(FILES - BUILDING - ChangeLog - ChangeLogSVN -- COPYING - LINKS - NEWS - PACKAGING +@@ -883,7 +883,6 @@ INSTALL(FILES + BUILDING + ChangeLog + ChangeLogSVN +- COPYING + LINKS + NEWS + PACKAGING diff --git a/app-office/scribus/metadata.xml b/app-office/scribus/metadata.xml index 5e62e84f4d54..7b8b492736f7 100644 --- a/app-office/scribus/metadata.xml +++ b/app-office/scribus/metadata.xml @@ -22,6 +22,7 @@ <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> + <flag name="poppler">Native pdf import</flag> <flag name="scripts">Install the scripts</flag> <flag name="tk">Install tk based scripts e.g. FontSample.py</flag> </use> diff --git a/app-office/scribus/scribus-1.4.3.ebuild b/app-office/scribus/scribus-1.4.3.ebuild new file mode 100644 index 000000000000..6c1740a8663b --- /dev/null +++ b/app-office/scribus/scribus-1.4.3.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-1.4.3.ebuild,v 1.9 2014/08/14 07:15:15 jlec Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7} ) +PYTHON_REQ_USE="tk?" + +inherit cmake-utils fdo-mime 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 scripts templates tk" + +# 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_}" + +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + tk? ( scripts )" + +COMMON_DEPEND=" + ${PYTHON_DEPS} + dev-libs/boost + dev-libs/hyphen + dev-libs/libxml2 + dev-qt/qtcore:4 + dev-qt/qtgui:4 + 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] + virtual/jpeg + cairo? ( x11-libs/cairo[X,svg] ) + !cairo? ( media-libs/libart_lgpl ) + hunspell? ( app-text/hunspell ) + pdf? ( app-text/podofo ) + scripts? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] ) + tk? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] ) +" +RDEPEND="${COMMON_DEPEND} + app-text/ghostscript-gpl" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-1.4.2-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 + + cmake-utils_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="$(python_get_library_path)" + -DWANT_NORPATH=ON + -DWANT_QT3SUPPORT=OFF + -DGENTOOVERSION=${PVR} + -DWANT_GUI_LANG=${langs#,} + $(cmake-utils_use_with pdf PODOFO) + $(cmake-utils_use_want cairo) + $(cmake-utils_use_want !cairo QTARTHUR) + $(cmake-utils_use_want debug DEBUG) + $(cmake-utils_use_want minimal NOHEADERINSTALL) + $(cmake-utils_use_want hunspell HUNSPELL) + $(cmake-utils_use_want !examples NOEXAMPLES) + $(cmake-utils_use_want !templates NOTEMPLATES) + ) + 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 + + if ! use scripts; then + rm "${ED}"/usr/share/scribus/scripts/*.py || die + elif ! use tk; then + rm "${ED}"/usr/share/scribus/scripts/{FontSample,CalendarWizard}.py || die + fi + + python_fix_shebang "${ED}"/usr/share/scribus/scripts + python_optimize "${ED}"/usr/share/scribus/scripts + + 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_desktop_database_update + fdo-mime_mime_database_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + 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 98fb13f221ff..a58484f0b13c 100644 --- a/app-office/scribus/scribus-1.4.9999.ebuild +++ b/app-office/scribus/scribus-1.4.9999.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2014 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.8 2013/09/17 15:58:17 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-1.4.9999.ebuild,v 1.9 2014/08/14 07:15:15 jlec Exp $ EAPI=5 -PYTHON_COMPAT=( python{2_6,2_7} ) -PYTHON_REQ_USE=tk +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="tk?" inherit cmake-utils fdo-mime multilib python-single-r1 subversion @@ -18,17 +18,18 @@ ESVN_PROJECT=Scribus-1.4 LICENSE="GPL-2" SLOT="0" KEYWORDS="" -IUSE="cairo debug examples hunspell +minimal +pdf templates" +IUSE="cairo debug examples hunspell +minimal +pdf scripts templates tk" # 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_}" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + tk? ( scripts )" COMMON_DEPEND=" ${PYTHON_DEPS} - virtual/python-imaging[tk,${PYTHON_USEDEP}] dev-libs/boost dev-libs/hyphen dev-libs/libxml2 @@ -43,8 +44,12 @@ COMMON_DEPEND=" sys-libs/zlib[minizip] virtual/jpeg cairo? ( x11-libs/cairo[X,svg] ) + !cairo? ( media-libs/libart_lgpl ) + hunspell? ( app-text/hunspell ) pdf? ( app-text/podofo ) - hunspell? ( app-text/hunspell )" + scripts? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] ) + tk? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] ) +" RDEPEND="${COMMON_DEPEND} app-text/ghostscript-gpl" DEPEND="${COMMON_DEPEND} @@ -52,7 +57,6 @@ DEPEND="${COMMON_DEPEND} PATCHES=( "${FILESDIR}"/${PN}-1.4.2-docs.patch - "${FILESDIR}"/${PN}-1.4.0-minizip.patch ) src_prepare() { @@ -65,6 +69,10 @@ src_prepare() { EOF rm scribus/{ioapi,unzip}.[ch] || die + sed \ + -e "/^\s*unzip\.[ch]/d" \ + -e "/^\s*ioapi\.[ch]/d" \ + -i scribus/CMakeLists.txt || die sed \ -e 's:\(${CMAKE_INSTALL_PREFIX}\):./\1:g' \ @@ -86,21 +94,21 @@ src_configure() { local mycmakeargs=( -DHAVE_PYTHON=ON - -DPYTHON_INCLUDE_PATH=$(python_get_includedir) - -DPYTHON_LIBRARY="${EPREFIX}/usr/$(get_libdir)/lib${EPYTHON}.so" + -DPYTHON_INCLUDE_PATH="$(python_get_includedir)" + -DPYTHON_LIBRARY="$(python_get_library_path)" -DWANT_NORPATH=ON - -DWANT_QTARTHUR=ON -DWANT_QT3SUPPORT=OFF -DGENTOOVERSION=${PVR} -DWANT_GUI_LANG=${langs#,} $(cmake-utils_use_with pdf PODOFO) $(cmake-utils_use_want cairo) + $(cmake-utils_use_want !cairo QTARTHUR) $(cmake-utils_use_want debug DEBUG) $(cmake-utils_use_want minimal NOHEADERINSTALL) $(cmake-utils_use_want hunspell HUNSPELL) + $(cmake-utils_use_want !examples NOEXAMPLES) + $(cmake-utils_use_want !templates NOTEMPLATES) ) - use examples || mycmakeargs+=( -DWANT_NOEXAMPLES=ON) - use templates || mycmakeargs+=( -DWANT_NOTEMPLATES=ON) cmake-utils_src_configure } @@ -115,6 +123,15 @@ src_install() { fi done + if ! use scripts; then + rm "${ED}"/usr/share/scribus/scripts/*.py || die + elif ! use tk; then + rm "${ED}"/usr/share/scribus/scripts/{FontSample,CalendarWizard}.py || die + fi + + python_fix_shebang "${ED}"/usr/share/scribus/scripts + python_optimize "${ED}"/usr/share/scribus/scripts + 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 diff --git a/app-office/scribus/scribus-9999.ebuild b/app-office/scribus/scribus-9999.ebuild index a27b6d1dbf43..27b1c572d8ab 100644 --- a/app-office/scribus/scribus-9999.ebuild +++ b/app-office/scribus/scribus-9999.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-9999.ebuild,v 1.9 2013/09/17 15:58:17 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/scribus/scribus-9999.ebuild,v 1.10 2014/08/14 07:15:15 jlec Exp $ EAPI=5 -PYTHON_COMPAT=( python{2_6,2_7} ) -PYTHON_REQ_USE=tk +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="tk?" inherit cmake-utils fdo-mime multilib python-single-r1 subversion @@ -18,17 +18,18 @@ ESVN_PROJECT=Scribus-1.5 LICENSE="GPL-2" SLOT="0" KEYWORDS="" -IUSE="cairo debug examples graphicsmagick hunspell +minimal osg +pdf templates" +IUSE="cairo debug examples graphicsmagick hunspell +minimal osg +pdf poppler scripts templates tk" # 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_}" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + tk? ( scripts )" COMMON_DEPEND=" ${PYTHON_DEPS} - virtual/python-imaging[tk,${PYTHON_USEDEP}] dev-libs/boost dev-libs/hyphen dev-libs/libxml2 @@ -43,10 +44,15 @@ COMMON_DEPEND=" sys-libs/zlib[minizip] virtual/jpeg cairo? ( x11-libs/cairo[X,svg] ) + !cairo? ( media-libs/libart_lgpl ) + hunspell? ( app-text/hunspell ) graphicsmagick? ( media-gfx/graphicsmagick ) osg? ( dev-games/openscenegraph ) pdf? ( app-text/podofo ) - hunspell? ( app-text/hunspell )" + poppler? ( app-text/poppler ) + scripts? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] ) + tk? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] ) +" RDEPEND="${COMMON_DEPEND} app-text/ghostscript-gpl" DEPEND="${COMMON_DEPEND} @@ -65,7 +71,6 @@ src_prepare() { MARK_AS_ADVANCED( ZLIB_LIBRARY ZLIB_INCLUDE_DIR ) EOF - rm scribus/{ioapi,unzip}.[ch] || die sed \ -e "/^\s*unzip\.[ch]/d" \ -e "/^\s*ioapi\.[ch]/d" \ @@ -91,8 +96,8 @@ src_configure() { local mycmakeargs=( -DHAVE_PYTHON=ON - -DPYTHON_INCLUDE_PATH=$(python_get_includedir) - -DPYTHON_LIBRARY="${EPREFIX}/usr/$(get_libdir)/lib${EPYTHON}.so" + -DPYTHON_INCLUDE_PATH="$(python_get_includedir)" + -DPYTHON_LIBRARY="$(python_get_library_path)" -DWANT_NORPATH=ON -DWANT_QTARTHUR=ON -DWANT_QT3SUPPORT=OFF @@ -105,9 +110,9 @@ src_configure() { $(cmake-utils_use_want debug DEBUG) $(cmake-utils_use_want minimal NOHEADERINSTALL) $(cmake-utils_use_want hunspell HUNSPELL) + $(cmake-utils_use_want !examples NOEXAMPLES) + $(cmake-utils_use_want !templates NOTEMPLATES) ) - use examples || mycmakeargs+=( -DWANT_NOEXAMPLES=ON) - use templates || mycmakeargs+=( -DWANT_NOTEMPLATES=ON) cmake-utils_src_configure } @@ -122,6 +127,15 @@ src_install() { fi done + if ! use scripts; then + rm "${ED}"/usr/share/scribus/scripts/*.py || die + elif ! use tk; then + rm "${ED}"/usr/share/scribus/scripts/{FontSample,CalendarWizard}.py || die + fi + + python_fix_shebang "${ED}"/usr/share/scribus/scripts + python_optimize "${ED}"/usr/share/scribus/scripts + 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 |