diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-03-30 14:41:43 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-03-30 14:41:43 +0000 |
commit | 04f9c74ae3a7634a12f2a448e051a58f5d481b74 (patch) | |
tree | 21c8d3944cc924237d32cd4760987a538274751e /sys-fs/ntfsprogs/ntfsprogs-2.0.0-r3.ebuild | |
parent | Add src_compile() phase to override the one from java-pkg-2. (diff) | |
download | gentoo-2-04f9c74ae3a7634a12f2a448e051a58f5d481b74.tar.gz gentoo-2-04f9c74ae3a7634a12f2a448e051a58f5d481b74.tar.bz2 gentoo-2-04f9c74ae3a7634a12f2a448e051a58f5d481b74.zip |
Revision bump: fix building with net-libs/gnutls[nettle] (bug #361307); avoid playing with configure to remove cflags mangling on USE=debug; only depend on libconfig when USE=crypt is enabled.
(Portage version: 2.2.0_alpha29/cvs/Linux x86_64)
Diffstat (limited to 'sys-fs/ntfsprogs/ntfsprogs-2.0.0-r3.ebuild')
-rw-r--r-- | sys-fs/ntfsprogs/ntfsprogs-2.0.0-r3.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/sys-fs/ntfsprogs/ntfsprogs-2.0.0-r3.ebuild b/sys-fs/ntfsprogs/ntfsprogs-2.0.0-r3.ebuild new file mode 100644 index 000000000000..f5f50a3fdacc --- /dev/null +++ b/sys-fs/ntfsprogs/ntfsprogs-2.0.0-r3.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/ntfsprogs/ntfsprogs-2.0.0-r3.ebuild,v 1.1 2011/03/30 14:41:43 flameeyes Exp $ + +inherit eutils flag-o-matic autotools + +DESCRIPTION="User tools for NTFS filesystems" +HOMEPAGE="http://www.linux-ntfs.org/" +SRC_URI="mirror://sourceforge/linux-ntfs/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="crypt debug fuse gnome minimal" + +RDEPEND=" + fuse? ( >=sys-fs/fuse-2.7.0 ) + crypt? ( + >=dev-libs/libgcrypt-1.2.0 + >=net-libs/gnutls-1.2.8 + >=dev-libs/libconfig-1.0.1 + ) + gnome? ( + >=dev-libs/glib-2.0 + >=gnome-base/gnome-vfs-2.0 + )" +DEPEND="${RDEPEND} + !=sys-fs/ntfs3g-0.1_beta20070714 + dev-util/pkgconfig" + +src_unpack() { + unpack ${A} + cd "${S}" + #epatch "${FILESDIR}"/${P}-extras.patch #218601 + epatch "${FILESDIR}"/${P}-erange.patch #329445 + epatch "${FILESDIR}"/${P}-cryptolink.patch #361307 + + use minimal || sed -i 's:^EXTRA_PROGRAMS.*+\?=:bin_PROGRAMS +=:' ntfsprogs/Makefile.am #218601 + + eautoreconf +} + +src_compile() { + # Avoid --enable-debug as that will set -O0 -ggdb3 + use debug && append-flags -DDEBUG + + econf \ + $(use_enable crypt crypto) \ + $(use_enable fuse ntfsmount) \ + $(use_enable gnome gnome-vfs) \ + || die "Configure failed" + + emake || die "Make failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "Install failed" + mv "${D}"/sbin/mkfs.ntfs "${D}"/usr/sbin/ || die + if ! use minimal ; then + mv "${D}"/usr/bin/ntfsck "${D}"/sbin/ || die + dosym ntfsck /sbin/fsck.ntfs + fi + if use fuse ; then + mv "${D}"/sbin/mount.{fuse.ntfs,ntfs-fuse} "${D}"/usr/bin/ || die + fi + + dodoc AUTHORS CREDITS ChangeLog NEWS README TODO.* \ + doc/attribute_definitions doc/*.txt doc/tunable_settings +} |