--- exiftags-1.01.ebuild +++ exiftags-1.01.ebuild @@ -1,7 +1,9 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/exiftags/exiftags-1.01.ebuild,v 1.6 2010/01/07 22:05:34 fauli Exp $ +EAPI=4 + inherit toolchain-funcs DESCRIPTION="Extracts JPEG EXIF headers from digital camera photos" @@ -15,12 +17,17 @@ DEPEND="" +src_prepare() { + sed -i -e "s/\$(CC)/\$(CC) \$(LDFLAGS)/" Makefile \ + || die "Makefile sed failed" +} + src_compile() { - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed." + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" } src_install() { - dobin exiftags exifcom exiftime || die "dobin failed." + dobin exiftags exifcom exiftime doman exiftags.1 exifcom.1 exiftime.1 dodoc README CHANGES }