parent
0060d8f50f
commit
abe7f207a6
@ -0,0 +1,51 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Quickly compare files for identity"
|
||||
HOMEPAGE="https://git.flanchan.moe/flanchan/fcmp"
|
||||
SRC_URI="https://git.flanchan.moe/flanchan/fcmp/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
IUSE="debug threads pgo"
|
||||
|
||||
REQUIRED_USE="pgo? ( !debug )"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
mv ${PN} ${P}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
|
||||
local FEAT_CFLAGS
|
||||
local FEAT_LDFLAGS
|
||||
|
||||
if use threads; then
|
||||
FEAT_CFLAGS="-D_RUN_THREADED=0"
|
||||
FEAT_LDFLAGS="-lpthread"
|
||||
fi
|
||||
|
||||
if use debug; then
|
||||
FEAT_CFLAGS="${FEAT_CFLAGS}" FEAT_LDFLAGS="${FEAT_LDFLAGS}" CFLAGS="" LDFLAGS="" emake debug
|
||||
mv ${PN}-debug ${PN}
|
||||
elif use pgo; then
|
||||
FEAT_CFLAGS="${FEAT_CFLAGS}" FEAT_LDFLAGS="${FEAT_LDFLAGS}" RELEASE_CFLAGS="" RELEASE_LDFLAGS="" emake pgo
|
||||
mv ${PN}-pgo ${PN}
|
||||
else
|
||||
FEAT_CFLAGS="${FEAT_CFLAGS}" FEAT_LDFLAGS="${FEAT_LDFLAGS}" RELEASE_CFLAGS="" RELEASE_LDFLAGS="" default
|
||||
mv ${PN}-release ${PN}
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Quickly compare files for identity"
|
||||
HOMEPAGE="https://git.flanchan.moe/flanchan/fcmp"
|
||||
SRC_URI="https://git.flanchan.moe/flanchan/fcmp/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
IUSE="debug threads pgo"
|
||||
|
||||
REQUIRED_USE="pgo? ( !debug )"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
mv ${PN} ${P}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
|
||||
local FEAT_CFLAGS
|
||||
local FEAT_LDFLAGS
|
||||
|
||||
if use threads; then
|
||||
FEAT_CFLAGS="-D_RUN_THREADED=0"
|
||||
FEAT_LDFLAGS="-lpthread"
|
||||
fi
|
||||
|
||||
if use debug; then
|
||||
FEAT_CFLAGS="${FEAT_CFLAGS}" FEAT_LDFLAGS="${FEAT_LDFLAGS}" CFLAGS="" LDFLAGS="" emake debug
|
||||
mv ${PN}-debug ${PN}
|
||||
elif use pgo; then
|
||||
FEAT_CFLAGS="${FEAT_CFLAGS}" FEAT_LDFLAGS="${FEAT_LDFLAGS}" RELEASE_CFLAGS="" RELEASE_LDFLAGS="" emake pgo
|
||||
mv ${PN}-pgo ${PN}
|
||||
else
|
||||
FEAT_CFLAGS="${FEAT_CFLAGS}" FEAT_LDFLAGS="${FEAT_LDFLAGS}" RELEASE_CFLAGS="" RELEASE_LDFLAGS="" default
|
||||
mv ${PN}-release ${PN}
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST shuffle3-1.0.0.tar.gz 8030 BLAKE2B e1b653bcbb32cb85e469c13c751f7ef8e65119fba36a5db70c2b6b032bb2d7619d005a8d6b31140f26525e4529c69dbfbe442952f59150f5dc5733c2c7fa3435 SHA512 a9f6c178233af48cde84b5bd1c23b03dd32c912b1d86a380d7cd7f7df49c3a8b848ee30840e620e624c538d49e5cb6ea904f8e2d6ae90b05a26221e46c28fcf6
|
||||
DIST shuffle3-1.0.1.tar.gz 20790 BLAKE2B 96fef9faa96de91fc53781107eb3b9ed8c72dfe8f512e2102355df79883e8cb29ebb6f077abcdf0d3d2ed7f928da15cb21a741ff9c2f948309c66e5e5a67d06a SHA512 ca41061677205421d9eb634336ec7dec38bc6f07f32b630e4af114abd2e331c086e255d106353b210c7270e9ad2315e7e8bd318d64756ad1aca872d2adfd1815
|
||||
|
@ -0,0 +1,37 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="3 stage byte shuffler"
|
||||
HOMEPAGE=""
|
||||
SRC_URI="https://git.flanchan.moe/flanchan/shuffle3/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-4+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
IUSE="debug"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
mv ${PN}{,-${PV}}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use debug; then
|
||||
CFLAGS="" LDFLAGS="" emake debug
|
||||
mv build/${PN}{-debug,}
|
||||
else
|
||||
RELEASE_CFLAGS="" RELEASE_LDFLAGS="" default
|
||||
mv build/${PN}{-release,}
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin build/${PN}
|
||||
}
|
Loading…
Reference in new issue