--- /var/package-manager/portage/app-office/scribus/scribus-1.4.2-r3.ebuild 2013-07-02 18:01:06.000000000 +0400 +++ scribus-1.4.2-r3.ebuild 2013-07-15 18:51:36.000000000 +0400 @@ -5,9 +5,9 @@ EAPI=5 PYTHON_COMPAT=( python{2_6,2_7} ) -PYTHON_REQ_USE=tk +PYTHON_REQ_USE="tk?" -inherit cmake-utils fdo-mime multilib python-single-r1 +inherit cmake-utils fdo-mime python-single-r1 DESCRIPTION="Desktop publishing (DTP) and layout program" HOMEPAGE="http://www.scribus.net/" @@ -16,7 +16,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" -IUSE="aspell cairo debug examples hunspell +minimal +pdf templates" +IUSE="aspell cairo debug examples hunspell imaging +minimal +pdf 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" @@ -26,7 +26,6 @@ COMMON_DEPEND=" ${PYTHON_DEPS} - virtual/python-imaging[tk,${PYTHON_USEDEP}] dev-libs/boost dev-libs/hyphen dev-libs/libxml2 @@ -43,7 +42,9 @@ cairo? ( x11-libs/cairo[X,svg] ) pdf? ( app-text/podofo ) aspell? ( app-text/aspell ) - hunspell? ( app-text/hunspell )" + hunspell? ( app-text/hunspell ) + imaging? ( virtual/python-imaging[tk?,${PYTHON_USEDEP}] ) +" RDEPEND="${COMMON_DEPEND} app-text/ghostscript-gpl" DEPEND="${COMMON_DEPEND} @@ -85,8 +86,8 @@ 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 @@ -98,9 +99,9 @@ $(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 }