net-misc/lambdamoo: use #!/sbin/openrc-run instead of #!/sbin/runscript
authorAustin English <wizardedit@gentoo.org>
Wed, 4 May 2016 00:00:23 +0000 (19:00 -0500)
committerAustin English <wizardedit@gentoo.org>
Wed, 4 May 2016 00:08:37 +0000 (19:08 -0500)
Gentoo-Bug: https://bugs.gentoo.org/573846

Package-Manager: portage-2.2.26

net-misc/lambdamoo/files/lambdamoo.rc
net-misc/lambdamoo/lambdamoo-1.8.1-r3.ebuild [new file with mode: 0644]

index 142ce15dc8a92d413ce1143ec9b00a48d888d1c4..579076f26cb1632d365f2f47fea163e2193063c9 100644 (file)
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
diff --git a/net-misc/lambdamoo/lambdamoo-1.8.1-r3.ebuild b/net-misc/lambdamoo/lambdamoo-1.8.1-r3.ebuild
new file mode 100644 (file)
index 0000000..de08a46
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+
+inherit autotools
+
+DESCRIPTION="networked mud that can be used for different types of collaborative software"
+HOMEPAGE="http://sourceforge.net/projects/lambdamoo/"
+SRC_URI="mirror://sourceforge/lambdamoo/LambdaMOO-${PV}.tar.gz"
+
+LICENSE="LambdaMOO GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~sparc"
+IUSE=""
+
+DEPEND="sys-devel/bison"
+RDEPEND=""
+
+S=${WORKDIR}/MOO-${PV}
+
+src_prepare() {
+       default
+
+       eapply "${FILESDIR}"/${PV}-enable-outbound.patch
+       sed -i Makefile.in \
+               -e '/ -o /s|$(CFLAGS)|& $(LDFLAGS)|g' \
+               || die "sed Makefile.in"
+       eautoreconf
+}
+
+src_compile() {
+       emake \
+               CC=$(tc-getCC) \
+               CFLAGS="${CFLAGS} \
+               -DHAVE_MKFIFO=1"
+}
+
+src_install() {
+       dosbin moo
+       insinto /usr/share/${PN}
+       doins Minimal.db
+       dodoc *.txt README*
+
+       newinitd "${FILESDIR}"/lambdamoo.rc ${PN}
+       newconfd "${FILESDIR}"/lambdamoo.conf ${PN}
+}