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.
38 lines
785 B
38 lines
785 B
3 years ago
|
# 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
|
||
|
}
|