parent
1284c04652
commit
157a4318d2
@ -0,0 +1 @@
|
||||
DIST libcow-0.1.1.tar.gz 11130 BLAKE2B d6e01153dd4d87e9b750a9ae5974528c76a0b9169a09cc7c1a780d3375d75c7bdf76a8c525c220eee84cd24c92567092ca5d90f22f68449f6432b2b8e6ecbcb3 SHA512 35e7d4ffc529a123bdb7d3689b45cd2cbfdad831572a3a261e37d8f296cab166be0270dc10c91a605c791c01b337ba0e94d42daa0c4cfaf9832a1d653357a089
|
@ -0,0 +1,37 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="automatic copy-on-write memory slices"
|
||||
HOMEPAGE="https://git.flanchan.moe/flanchan/libcow"
|
||||
SRC_URI="https://git.flanchan.moe/flanchan/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
IUSE="debug"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
mv ${PN}{,-${PV}}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use debug; then
|
||||
CFLAGS=""
|
||||
CXXFLAGS=""
|
||||
LDFLAGS=""
|
||||
fi
|
||||
TARGET_SPEC_FLAGS=$(usex debug yes no) emake STRIP=: $(usev debug)
|
||||
use debug && ( mv -f ${PN}{-debug,}.so &&
|
||||
mv -f ${PN}{-debug,}.a || die "failed to move debug targets into place")
|
||||
}
|
||||
|
||||
src_install() {
|
||||
PREFIX="${PREFIX:-/usr/$(get_libdir)}" default
|
||||
}
|
Loading…
Reference in new issue