Files
gentoo/dev-util/statifier/statifier-1.7.4.ebuild
T
Agostino Sarubbo 532a8840f7 dev-util/statifier: amd64 stable wrt bug #655014
Package-Manager: Portage-2.3.24, Repoman-2.3.6
RepoMan-Options: --include-arches="amd64"
2018-05-08 09:08:30 +02:00

54 lines
1.1 KiB
Bash

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
MULTILIB_COMPAT=( abi_x86_{32,64} )
inherit multilib-build
DESCRIPTION="Statifier is a tool for creating portable, self-containing Linux executables"
HOMEPAGE="http://statifier.sourceforge.net"
SRC_URI="https://sourceforge.net/projects/${PN}/files/${PN}/${PV}/${P}.tar.gz"
KEYWORDS="amd64 x86"
SLOT="0"
LICENSE="GPL-2"
IUSE=""
RDEPEND="app-shells/bash
sys-apps/coreutils
virtual/awk"
src_prepare() {
# Respect users CFLAGS and LDFLAGS
sed -i -e 's/-Wall -O2/$(CFLAGS) $(LDFLAGS)/g' src/Makefile || die
# Don't compile 32-bit on amd64 no-multilib profile
if ! use abi_x86_32; then
sed -i -e 's/ELF32 .*/ELF32 := no/g' configs/config.x86_64 || die
fi
# Apply user patches
eapply_user
}
src_configure() {
# Fix permissions, as configure is not marked executable
chmod +x configure || die
econf
}
src_compile() {
# Package complains with MAKEOPTS > -j1
emake -j1
}
src_install() {
# Package complains with MAKEOPTS > -j1
emake -j1 DESTDIR="${D}" install
# Install docs
einstalldocs
}