summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2011-02-16 16:16:42 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2011-02-16 16:16:42 +0000
commit1c2e0000e57ede0b98c475afc172adb25ad1c1b6 (patch)
tree65e31ca93c8d219d64fe7cce4b5ffb303d74f054 /x11-libs/libfm
parentfix build with libpng 1.5 (diff)
downloadgentoo-2-1c2e0000e57ede0b98c475afc172adb25ad1c1b6.tar.gz
gentoo-2-1c2e0000e57ede0b98c475afc172adb25ad1c1b6.tar.bz2
gentoo-2-1c2e0000e57ede0b98c475afc172adb25ad1c1b6.zip
Make docs optional. Bug #353592. Thanks to tbartdev@gmx-topmail.de for the patch
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
Diffstat (limited to 'x11-libs/libfm')
-rw-r--r--x11-libs/libfm/ChangeLog7
-rw-r--r--x11-libs/libfm/libfm-0.1.15_pre20110213.ebuild20
-rw-r--r--x11-libs/libfm/libfm-9999.ebuild26
3 files changed, 35 insertions, 18 deletions
diff --git a/x11-libs/libfm/ChangeLog b/x11-libs/libfm/ChangeLog
index dd42b22371d9..1cdc6a3cf06b 100644
--- a/x11-libs/libfm/ChangeLog
+++ b/x11-libs/libfm/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for x11-libs/libfm
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/libfm/ChangeLog,v 1.29 2011/02/13 18:31:28 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libfm/ChangeLog,v 1.30 2011/02/16 16:16:42 hwoarang Exp $
+
+ 16 Feb 2011; Markos Chandras <hwoarang@gentoo.org>
+ libfm-0.1.15_pre20110213.ebuild, libfm-9999.ebuild:
+ Make docs optional. Bug #353592. Thanks to tbartdev@gmx-topmail.de for the
+ patch
*libfm-0.1.15_pre20110213 (13 Feb 2011)
diff --git a/x11-libs/libfm/libfm-0.1.15_pre20110213.ebuild b/x11-libs/libfm/libfm-0.1.15_pre20110213.ebuild
index d4abd630bb38..4e1c11862d65 100644
--- a/x11-libs/libfm/libfm-0.1.15_pre20110213.ebuild
+++ b/x11-libs/libfm/libfm-0.1.15_pre20110213.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/libfm/libfm-0.1.15_pre20110213.ebuild,v 1.1 2011/02/13 18:31:28 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libfm/libfm-0.1.15_pre20110213.ebuild,v 1.2 2011/02/16 16:16:42 hwoarang Exp $
EAPI=2
@@ -8,8 +8,6 @@ if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="git://pcmanfm.git.sourceforge.net/gitroot/pcmanfm/${PN}"
inherit autotools git
SRC_URI=""
- EXTRA_DEPEND="dev-util/gtk-doc
- dev-util/gtk-doc-am"
else
inherit autotools
SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
@@ -23,7 +21,7 @@ HOMEPAGE="http://pcmanfm.sourceforge.net/"
LICENSE="GPL-2"
SLOT="0"
-IUSE="debug examples udev"
+IUSE="debug doc examples udev"
COMMON_DEPEND=">=dev-libs/glib-2.18:2
>=x11-libs/gtk+-2.16:2
@@ -33,14 +31,21 @@ RDEPEND="${COMMON_DEPEND}
x11-misc/shared-mime-info
udev? ( sys-fs/udisks )"
DEPEND="${COMMON_DEPEND}
- dev-util/gtk-doc
- dev-util/gtk-doc-am
+ doc? (
+ dev-util/gtk-doc
+ dev-util/gtk-doc-am
+ )
>=dev-util/intltool-0.40
dev-util/pkgconfig
sys-devel/gettext"
src_prepare() {
- gtkdocize --copy || die
+ if ! use doc; then
+ sed -ie '/SUBDIRS=/s#docs##' "${WORKDIR}"/Makefile.am || die "sed failed"
+ sed -ie '/^[[:space:]]*docs/d' configure.ac || die "sed failed"
+ else
+ gtkdocize --copy || die
+ fi
intltoolize --force --copy --automake || die
eautoreconf
}
@@ -53,6 +58,7 @@ src_configure() {
$(use_enable udev udisks) \
$(use_enable examples demo) \
$(use_enable debug) \
+ $(use_enable doc gtk_doc) \
--with-html-dir=/usr/share/doc/${PF}/html
}
diff --git a/x11-libs/libfm/libfm-9999.ebuild b/x11-libs/libfm/libfm-9999.ebuild
index eddfee2c183f..f5bbbc16e0ca 100644
--- a/x11-libs/libfm/libfm-9999.ebuild
+++ b/x11-libs/libfm/libfm-9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/libfm/libfm-9999.ebuild,v 1.9 2011/01/22 14:26:45 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libfm/libfm-9999.ebuild,v 1.10 2011/02/16 16:16:42 hwoarang Exp $
EAPI=2
@@ -8,10 +8,9 @@ if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="git://pcmanfm.git.sourceforge.net/gitroot/pcmanfm/${PN}"
inherit autotools git
SRC_URI=""
- EXTRA_DEPEND="dev-util/gtk-doc
- dev-util/gtk-doc-am"
else
- SRC_URI="mirror://sourceforge/pcmanfm/${P}.tar.gz"
+ inherit autotools
+ SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~ppc ~x86"
fi
@@ -22,7 +21,7 @@ HOMEPAGE="http://pcmanfm.sourceforge.net/"
LICENSE="GPL-2"
SLOT="0"
-IUSE="debug examples udev"
+IUSE="debug doc examples udev"
COMMON_DEPEND=">=dev-libs/glib-2.18:2
>=x11-libs/gtk+-2.16:2
@@ -32,17 +31,23 @@ RDEPEND="${COMMON_DEPEND}
x11-misc/shared-mime-info
udev? ( sys-fs/udisks )"
DEPEND="${COMMON_DEPEND}
+ doc? (
+ dev-util/gtk-doc
+ dev-util/gtk-doc-am
+ )
>=dev-util/intltool-0.40
dev-util/pkgconfig
- sys-devel/gettext
- ${EXTRA_DEPEND}"
+ sys-devel/gettext"
src_prepare() {
- if [[ ${PV} == 9999 ]]; then
+ if ! use doc; then
+ sed -ie '/SUBDIRS=/s#docs##' "${WORKDIR}"/Makefile.am || die "sed failed"
+ sed -ie '/^[[:space:]]*docs/d' configure.ac || die "sed failed"
+ else
gtkdocize --copy || die
- intltoolize --force --copy --automake || die
- eautoreconf
fi
+ intltoolize --force --copy --automake || die
+ eautoreconf
}
src_configure() {
@@ -53,6 +58,7 @@ src_configure() {
$(use_enable udev udisks) \
$(use_enable examples demo) \
$(use_enable debug) \
+ $(use_enable doc gtk_doc) \
--with-html-dir=/usr/share/doc/${PF}/html
}