diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2021-07-18 13:44:26 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2021-07-18 18:17:39 +0200 |
commit | 9dc843d04bd7146dfe6a7021536bdbc2839e5874 (patch) | |
tree | fefaed309ca151e6045340e6dabbace8614c6078 /app-misc | |
parent | app-misc/beanstalkd: drop old version (diff) | |
download | gentoo-9dc843d04bd7146dfe6a7021536bdbc2839e5874.tar.gz gentoo-9dc843d04bd7146dfe6a7021536bdbc2839e5874.tar.bz2 gentoo-9dc843d04bd7146dfe6a7021536bdbc2839e5874.zip |
app-misc/beanstalkd: migrate to GLEP 81
Bug: https://bugs.gentoo.org/781257
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/beanstalkd/beanstalkd-1.10-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/app-misc/beanstalkd/beanstalkd-1.10-r1.ebuild b/app-misc/beanstalkd/beanstalkd-1.10-r1.ebuild new file mode 100644 index 000000000000..489bb2fc14e4 --- /dev/null +++ b/app-misc/beanstalkd/beanstalkd-1.10-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd toolchain-funcs + +DESCRIPTION="A simple, fast work queue" +HOMEPAGE="https://kr.github.io/beanstalkd/" +SRC_URI="https://github.com/kr/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~mips x86 ~amd64-linux ~x64-macos" + +RDEPEND=" + acct-group/beanstalk + acct-user/beanstalk +" + +DOCS=( README News docs/protocol.txt ) + +src_prepare() { + sed -e "s/CFLAGS=/CFLAGS?=/" \ + -e "s/LDLIBS/LDFLAGS/" \ + -e "s/LDFLAGS=/LDFLAGS?=/" + -i Makefile || die +} + +src_compile() { + emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" LD="$(tc-getLD)" +} + +src_install() { + dobin beanstalkd + + doman doc/"${PN}".1 + + newconfd "${FILESDIR}/conf-1.9" beanstalkd + newinitd "${FILESDIR}/init-1.9" beanstalkd + + systemd_dounit "${S}/adm/systemd/${PN}".{service,socket} +} |