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.

39 lines
896 B

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Rotix allows you to generate rotational obfuscations"
HOMEPAGE="https://github.com/shemminga/rotix"
SRC_URI="https://github.com/shemminga/${PN}/releases/download/${PV}/${PN}_${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="nls"
BDEPEND="nls? ( sys-devel/gettext )"
RDEPEND="nls? ( virtual/libintl )"
PATCHES=(
"${FILESDIR}/rotix-0.83-cc-cflags-lflags.patch"
"${FILESDIR}/rotix-0.83-locale.patch"
"${FILESDIR}/rotix-0.83-interix.patch"
"${FILESDIR}/rotix-0.83-nl.po-charset.patch"
)
src_configure() {
econf --i18n=$(usex nls 1 0) --strip=0 --debug=0
}
src_compile() {
emake CC=$(tc-getCC)
}
src_install() {
emake DESTDIR="${ED}" install
dodoc README
}