diff options
author | Yixun Lan <dlan@gentoo.org> | 2020-06-02 22:17:35 +0800 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2020-06-02 22:18:09 +0800 |
commit | c0d01ac4407b31e82dd12bb21ca366c9e5fcc087 (patch) | |
tree | c6f61764f7d625a892f49775c7fda059eae1153e /net-libs/libcork | |
parent | media-video/v4l2loopback: Bump to 0.12.5 (diff) | |
download | gentoo-c0d01ac4407b31e82dd12bb21ca366c9e5fcc087.tar.gz gentoo-c0d01ac4407b31e82dd12bb21ca366c9e5fcc087.tar.bz2 gentoo-c0d01ac4407b31e82dd12bb21ca366c9e5fcc087.zip |
net-libs/libcork: respect USE=static-libs
Closes: https://bugs.gentoo.org/724904
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'net-libs/libcork')
-rw-r--r-- | net-libs/libcork/libcork-0.15.0-r1.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/net-libs/libcork/libcork-0.15.0-r1.ebuild b/net-libs/libcork/libcork-0.15.0-r1.ebuild new file mode 100644 index 000000000000..24782aabf811 --- /dev/null +++ b/net-libs/libcork/libcork-0.15.0-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +DESCRIPTION="A simple, easily embeddable cross-platform C library" +HOMEPAGE="https://github.com/dcreager/libcork" +SRC_URI="https://github.com/dcreager/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="static-libs" + +RDEPEND="dev-libs/check" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${P}-git.patch" + "${FILESDIR}/${P}-version.patch" +) + +src_prepare() { + if ! [ -e "${S}"/RELEASE-VERSION ] ; then + echo ${PV} > "${S}"/RELEASE-VERSION || die + fi + sed -i -e "/DESTINATION/s/\${PROJECT_NAME}/\${PROJECT_NAME}-${PVR}/g" \ + docs/old/CMakeLists.txt || die + + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DENABLE_STATIC=$(usex static-libs) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install +} |