diff options
Diffstat (limited to 'net-misc/ethflop/ethflop-20191003.ebuild')
-rw-r--r-- | net-misc/ethflop/ethflop-20191003.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/net-misc/ethflop/ethflop-20191003.ebuild b/net-misc/ethflop/ethflop-20191003.ebuild new file mode 100644 index 000000000000..f0b9e708f26e --- /dev/null +++ b/net-misc/ethflop/ethflop-20191003.ebuild @@ -0,0 +1,46 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd toolchain-funcs + +DESCRIPTION="A network-backed floppy emulator for DOS" +HOMEPAGE="http://ethflop.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.zip" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="tsr" + +BDEPEND=" + app-arch/unzip + tsr? ( dev-lang/nasm ) +" + +PATCHES=( "${FILESDIR}/${P}-makefile.patch" ) + +S="${WORKDIR}" + +src_compile() { + tc-export CC + default + + use tsr && emake tsr +} + +src_install() { + dobin ethflopd + + if use tsr; then + insinto /usr/share/ethflop + doins ethflop.com + fi + + newinitd "${FILESDIR}"/ethflopd.initd ethflopd + newconfd "${FILESDIR}"/ethflopd.confd ethflopd + systemd_dounit "${FILESDIR}"/ethflopd.service + + dodoc ethflop.txt +} |