You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/libzip/libzip-0.10-r1.ebuild

49 lines
1.1 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libzip/libzip-0.10-r1.ebuild,v 1.7 2012/01/17 23:14:46 jer Exp $
EAPI=3
MY_P=${P/_}
inherit autotools-utils
DESCRIPTION="Library for manipulating zip archives"
HOMEPAGE="http://www.nih.at/libzip/"
SRC_URI="http://www.nih.at/libzip/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 hppa ~ia64 ~mips ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
IUSE="static-libs"
DEPEND="sys-libs/zlib"
RDEPEND="${DEPEND}"
DOCS=( NEWS README THANKS AUTHORS )
S=${WORKDIR}/${MY_P}
PATCHES=(
"${FILESDIR}/${PN}-0.10_rc1-fix_headers.patch"
"${FILESDIR}/${PN}-0.10-fix_pkgconfig.patch"
)
AUTOTOOLS_IN_SOURCE_BUILD=1
src_prepare() {
autotools-utils_src_prepare
# run due to fix_headers patch
AT_NOELIBTOOLIZE=yes eautoreconf
#elibtoolize # FreeBSD .so version
# fix test return state
sed -i \
-e 's:19/2:19/0:' \
regress/open_nonarchive.test || die
}
src_install() {
autotools-utils_src_install
remove_libtool_files all
}