diff options
author | Andrew Wilcox <AWilcox@Wilcox-Tech.com> | 2016-04-16 18:35:30 -0500 |
---|---|---|
committer | Andrew Wilcox <AWilcox@Wilcox-Tech.com> | 2016-04-16 18:37:40 -0500 |
commit | 2cce07628bf2ea966105afd52f73ba34088b2f5a (patch) | |
tree | 49b10dd59be8153cc781275a4378f8813268ce63 /sys-apps/noxcuse/noxcuse-1.0.ebuild | |
parent | af0667fafa4be900acebeea977b4529c837f11a0 (diff) | |
download | packages-2cce07628bf2ea966105afd52f73ba34088b2f5a.tar.gz packages-2cce07628bf2ea966105afd52f73ba34088b2f5a.tar.bz2 packages-2cce07628bf2ea966105afd52f73ba34088b2f5a.tar.xz packages-2cce07628bf2ea966105afd52f73ba34088b2f5a.zip |
sys-apps/noxcuse: New package
Diffstat (limited to 'sys-apps/noxcuse/noxcuse-1.0.ebuild')
-rw-r--r-- | sys-apps/noxcuse/noxcuse-1.0.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sys-apps/noxcuse/noxcuse-1.0.ebuild b/sys-apps/noxcuse/noxcuse-1.0.ebuild new file mode 100644 index 000000000..20a12b8ec --- /dev/null +++ b/sys-apps/noxcuse/noxcuse-1.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 2015-2016 Adélie Linux Team +# Distributed under the terms of the NCSA License + +EAPI=6 + +DESCRIPTION="Implementation of SUS/XCU utilities, with a focus on lean code" +HOMEPAGE="http://git.etalabs.net/cgit/noxcuse/" +SRC_URI="http://distfiles.foxkit.us/source/noxcuse/noxcuse-1.0.tar.xz" + +LICENSE="GPLv2+" +SLOT="0" +KEYWORDS="x86 x86_64" +IUSE_APPS="basename cat dirname false fold grep iconv link pwd strings true wc" +IUSE="" + +for app in ${IUSE_APPS} ; do + IUSE="${IUSE} noxcuse_apps_${app}" +done + +# require at least one app +IUSE_REQUIRED="|| ( ${IUSE} )" + +# Add further IUSE here in the future, if necessary. +#IUSE="${IUSE} " + +PATCHES=( + "${FILESDIR}/0001-Makefile-Fix-install-target-dependencies.patch" + "${FILESDIR}/0002-Makefile-Support-DESTDIR.patch" +) + +DEPEND="" +RDEPEND="${DEPEND}" + +src_install() { + emake DESTDIR="${D}" install + dodoc README TODO + + # Really wish there was a configure for this. + use noxcuse_apps_basename || rm ${D}/usr/bin/basename + use noxcuse_apps_cat || rm ${D}/bin/cat + use noxcuse_apps_dirname || rm ${D}/usr/bin/dirname + use noxcuse_apps_false || rm ${D}/bin/false + use noxcuse_apps_fold || rm ${D}/usr/bin/fold + use noxcuse_apps_grep || rm ${D}/bin/grep + use noxcuse_apps_iconv || rm ${D}/usr/bin/iconv + use noxcuse_apps_link || rm ${D}/usr/bin/link + use noxcuse_apps_pwd || rm ${D}/bin/pwd + use noxcuse_apps_strings || rm ${D}/usr/bin/strings + use noxcuse_apps_true || rm ${D}/bin/true + use noxcuse_apps_wc || rm ${D}/usr/bin/wc +} |