summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2007-12-24 06:48:11 +0000
committerPeter Volkov <pva@gentoo.org>2007-12-24 06:48:11 +0000
commitbcaca4a3735dde7a004fe292ec7fc7b24a87b059 (patch)
tree5e7c729817f774e86866a20380d3371eb8a2ac55 /app-text
parentFixup wrt bug #202906. Thanks to Jory Pratt and Bernd Steinhauser. (diff)
downloadgentoo-2-bcaca4a3735dde7a004fe292ec7fc7b24a87b059.tar.gz
gentoo-2-bcaca4a3735dde7a004fe292ec7fc7b24a87b059.tar.bz2
gentoo-2-bcaca4a3735dde7a004fe292ec7fc7b24a87b059.zip
Die if nsplugin is asked to be built but qt3 is not in USE, bug #196209 reported by Miron <prince.jah AT gmail.com>, fixed by Jakub <jakub AT gentoo.org>. Remove unused.
(Portage version: 2.1.3.19)
Diffstat (limited to 'app-text')
-rw-r--r--app-text/djvu/ChangeLog8
-rw-r--r--app-text/djvu/djvu-3.5.19-r1.ebuild114
-rw-r--r--app-text/djvu/djvu-3.5.20-r1.ebuild8
-rw-r--r--app-text/djvu/djvu-3.5.20.ebuild108
-rw-r--r--app-text/djvu/files/digest-djvu-3.5.19-r13
-rw-r--r--app-text/djvu/files/digest-djvu-3.5.203
6 files changed, 12 insertions, 232 deletions
diff --git a/app-text/djvu/ChangeLog b/app-text/djvu/ChangeLog
index cf58c93a9d5b..d229edc7a5d6 100644
--- a/app-text/djvu/ChangeLog
+++ b/app-text/djvu/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-text/djvu
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/djvu/ChangeLog,v 1.69 2007/12/13 09:52:52 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/djvu/ChangeLog,v 1.70 2007/12/24 06:48:10 pva Exp $
+
+ 24 Dec 2007; <pva@gentoo.org> -djvu-3.5.19-r1.ebuild, -djvu-3.5.20.ebuild,
+ djvu-3.5.20-r1.ebuild:
+ Die if nsplugin is asked to be built but qt3 is not in USE, bug #196209
+ reported by Miron <prince.jah AT gmail.com>, fixed by Jakub <jakub AT
+ gentoo.org>. Remove unused.
*djvu-3.5.20-r1 (13 Dec 2007)
diff --git a/app-text/djvu/djvu-3.5.19-r1.ebuild b/app-text/djvu/djvu-3.5.19-r1.ebuild
deleted file mode 100644
index 3a18f8655a5c..000000000000
--- a/app-text/djvu/djvu-3.5.19-r1.ebuild
+++ /dev/null
@@ -1,114 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/djvu/djvu-3.5.19-r1.ebuild,v 1.1 2007/08/13 10:26:59 pva Exp $
-
-WANT_AUTOCONF="latest"
-WANT_AUTOMAKE="latest"
-inherit fdo-mime nsplugins flag-o-matic eutils multilib toolchain-funcs autotools
-
-MY_P="${PN}libre-${PV}"
-
-DESCRIPTION="DjVu viewers, encoders and utilities."
-HOMEPAGE="http://djvu.sourceforge.net"
-SRC_URI="mirror://sourceforge/djvu/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-IUSE="xml qt3 jpeg tiff debug threads nls nsplugin kde doc"
-
-DEPEND="jpeg? ( >=media-libs/jpeg-6b-r2 )
- tiff? ( media-libs/tiff )
- qt3? ( <x11-libs/qt-4 )"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if ! use qt3; then
- ewarn
- ewarn "The standalone djvu viewer, djview, will not be compiled."
- ewarn "Add \"qt3\" to your USE flags if you want it."
- ewarn
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Do not strip binaries as portage does this for us. bug #135208
- sed -i 's:${INSTALL_PROGRAM} -s:${INSTALL_PROGRAM}:' \
- gui/djview/Makefile.in tools/Makefile.in xmltools/Makefile.in
-
- # Fix compilaton with --as-needed. bug #132473
- epatch "${FILESDIR}"/djvulibre-3.5.17-pthread-flag.patch
-
- AT_M4DIR="config" eautoreconf
-}
-
-src_compile() {
- # assembler problems and hence non-building with pentium4
- # <obz@gentoo.org>
- replace-flags -march=pentium4 -march=pentium3
- echo LINGUAS=$LINGUAS
-
- # When enabling qt it must be compiled with threads. See bug #89544.
- if use qt3 ; then
- QTCONF=" --with-qt --enable-threads "
- elif use threads ; then
- QTCONF=" --without-qt --disable-djview --enable-threads "
- else
- QTCONF=" --without-qt --disable-djview --disable-threads "
- fi
-
- # We install all desktop files by hand.
- econf --disable-desktopfiles \
- $(use_enable xml xmltools) \
- $(use_with jpeg) \
- $(use_with tiff) \
- $(use_enable nls i18n) \
- $(use_enable debug) \
- ${QTCONF} \
- || die "econf failed"
-
- if ! use nsplugin; then
- sed -e 's:nsdejavu::' -i "${S}"/gui/Makefile || die
- fi
-
- emake -j1 || die "emake failed"
-}
-
-src_install() {
- make DESTDIR="${D}" plugindir=/usr/$(get_libdir)/${PLUGINS_DIR} install
-
- dodoc README TODO NEWS
-
- use doc && cp -r doc/ "${D}"/usr/share/doc/${PF}
-
- # Install desktop files.
- cd desktopfiles
- insinto /usr/share/icons/hicolor/22x22/mimetypes && newins hi22-djvu.png image-vnd.djvu.png
- insinto /usr/share/icons/hicolor/32x32/mimetypes && newins hi32-djvu.png image-vnd.djvu.png
- insinto /usr/share/icons/hicolor/48x48/mimetypes && newins hi48-djvu.png image-vnd.djvu.png
- insinto /usr/share/mime/packages && doins djvulibre-mime.xml
- if use kde ; then
- insinto /usr/share/mimelnk/image && doins vnd.djvu.desktop x-djvu.desktop
- cp "${D}"/usr/share/mimelnk/image/{vnd.djvu.desktop,x-djvu.desktop}
- sed -i -e 's:image/vnd.djvu:image/x-djvu:' "${D}"/usr/share/mimelnk/image/x-djvu.desktop
- fi
-
- if use qt3 ; then
- insinto /usr/share/icons/hicolor/32x32/apps && newins hi32-djview3.png djvulibre-djview3.png
- insinto /usr/share/applications/ && doins djvulibre-djview3.desktop
- fi
-}
-
-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-text/djvu/djvu-3.5.20-r1.ebuild b/app-text/djvu/djvu-3.5.20-r1.ebuild
index b55f5fc9c2f4..179430345575 100644
--- a/app-text/djvu/djvu-3.5.20-r1.ebuild
+++ b/app-text/djvu/djvu-3.5.20-r1.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/djvu/djvu-3.5.20-r1.ebuild,v 1.1 2007/12/13 09:52:52 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/djvu/djvu-3.5.20-r1.ebuild,v 1.2 2007/12/24 06:48:10 pva Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
-inherit fdo-mime nsplugins flag-o-matic eutils multilib toolchain-funcs autotools
+inherit fdo-mime nsplugins flag-o-matic eutils multilib toolchain-funcs autotools confutils
MY_P="${PN}libre-${PV}"
@@ -19,7 +19,7 @@ IUSE="xml qt3 jpeg tiff debug threads nls nsplugin kde doc"
DEPEND="jpeg? ( >=media-libs/jpeg-6b-r2 )
tiff? ( media-libs/tiff )
- qt3? ( <x11-libs/qt-4 )"
+ qt3? ( =x11-libs/qt-3* )"
S=${WORKDIR}/${MY_P}
@@ -35,6 +35,8 @@ pkg_setup() {
ewarn "Add \"qt3\" to your USE flags if you want it."
ewarn
fi
+
+ confutils_use_depend_all nsplugin qt3
}
src_unpack() {
diff --git a/app-text/djvu/djvu-3.5.20.ebuild b/app-text/djvu/djvu-3.5.20.ebuild
deleted file mode 100644
index 36621bc3d62a..000000000000
--- a/app-text/djvu/djvu-3.5.20.ebuild
+++ /dev/null
@@ -1,108 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/djvu/djvu-3.5.20.ebuild,v 1.1 2007/12/10 12:02:04 pva Exp $
-
-WANT_AUTOCONF="latest"
-WANT_AUTOMAKE="latest"
-inherit fdo-mime nsplugins flag-o-matic eutils multilib toolchain-funcs autotools
-
-MY_P="${PN}libre-${PV}"
-
-DESCRIPTION="DjVu viewers, encoders and utilities."
-HOMEPAGE="http://djvu.sourceforge.net"
-SRC_URI="mirror://sourceforge/djvu/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-IUSE="xml qt3 jpeg tiff debug threads nls nsplugin kde doc"
-
-DEPEND="jpeg? ( >=media-libs/jpeg-6b-r2 )
- tiff? ( media-libs/tiff )
- qt3? ( <x11-libs/qt-4 )"
-
-S=${WORKDIR}/${MY_P}
-
-pkg_setup() {
- if ! use qt3; then
- ewarn
- ewarn "The standalone djvu viewer, djview, will not be compiled."
- ewarn "Add \"qt3\" to your USE flags if you want it."
- ewarn
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Do not strip binaries as portage does this for us. bug #135208
- find -name Makefile.in -exec sed -i 's:${INSTALL_PROGRAM} -s:${INSTALL_PROGRAM}:' \{\} \;
- eautomake
-}
-src_compile() {
- # assembler problems and hence non-building with pentium4
- # <obz@gentoo.org>
- replace-flags -march=pentium4 -march=pentium3
- echo LINGUAS=$LINGUAS
-
- # When enabling qt it must be compiled with threads. See bug #89544.
- if use qt3 ; then
- QTCONF=" --with-qt --enable-threads "
- elif use threads ; then
- QTCONF=" --without-qt --disable-djview --enable-threads "
- else
- QTCONF=" --without-qt --disable-djview --disable-threads "
- fi
-
- # We install all desktop files by hand.
- econf --disable-desktopfiles \
- $(use_enable xml xmltools) \
- $(use_with jpeg) \
- $(use_with tiff) \
- $(use_enable nls i18n) \
- $(use_enable debug) \
- ${QTCONF} \
- || die "econf failed"
-
- if ! use nsplugin; then
- sed -e 's:nsdejavu::' -i "${S}"/gui/Makefile || die
- fi
-
- emake -j1 || die "emake failed"
-}
-
-src_install() {
- make DESTDIR="${D}" plugindir=/usr/$(get_libdir)/${PLUGINS_DIR} install
-
- dodoc README TODO NEWS
-
- use doc && cp -r doc/ "${D}"/usr/share/doc/${PF}
-
- # Install desktop files.
- cd desktopfiles
- insinto /usr/share/icons/hicolor/22x22/mimetypes && newins hi22-djvu.png image-vnd.djvu.png
- insinto /usr/share/icons/hicolor/32x32/mimetypes && newins hi32-djvu.png image-vnd.djvu.png
- insinto /usr/share/icons/hicolor/48x48/mimetypes && newins hi48-djvu.png image-vnd.djvu.png
- insinto /usr/share/mime/packages && doins djvulibre-mime.xml
- if use kde ; then
- insinto /usr/share/mimelnk/image && doins vnd.djvu.desktop x-djvu.desktop
- cp "${D}"/usr/share/mimelnk/image/{vnd.djvu.desktop,x-djvu.desktop}
- sed -i -e 's:image/vnd.djvu:image/x-djvu:' "${D}"/usr/share/mimelnk/image/x-djvu.desktop
- fi
-
- if use qt3 ; then
- insinto /usr/share/icons/hicolor/32x32/apps && newins hi32-djview3.png djvulibre-djview3.png
- insinto /usr/share/applications/ && doins djvulibre-djview3.desktop
- fi
-}
-
-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-text/djvu/files/digest-djvu-3.5.19-r1 b/app-text/djvu/files/digest-djvu-3.5.19-r1
deleted file mode 100644
index 3fb5fdd6713e..000000000000
--- a/app-text/djvu/files/digest-djvu-3.5.19-r1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 0330d87ad337e408e21e1018eb511839 djvulibre-3.5.19.tar.gz 2380092
-RMD160 2eb9b5df021bb7121a051d3256999da27dd3b682 djvulibre-3.5.19.tar.gz 2380092
-SHA256 57ffa154f45de309b352ce53aa6618af2f8639d1e330470c3c955241d44ccd78 djvulibre-3.5.19.tar.gz 2380092
diff --git a/app-text/djvu/files/digest-djvu-3.5.20 b/app-text/djvu/files/digest-djvu-3.5.20
deleted file mode 100644
index 2c0705b80cf0..000000000000
--- a/app-text/djvu/files/digest-djvu-3.5.20
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 c94091de014b3aaf037d3d0f398d36c2 djvulibre-3.5.20.tar.gz 2416958
-RMD160 fb755064912586585656b9701b7d98bd3019c67b djvulibre-3.5.20.tar.gz 2416958
-SHA256 d937528e10c16831d8df31893ee24da8ec2bfd9e9170671c482a1b1abfc5efc3 djvulibre-3.5.20.tar.gz 2416958