net-mail/ezmlm-idx: Drop old (EAPI 0)

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2019-10-12 09:01:12 +02:00
parent a630be31f9
commit bb4179843d
2 changed files with 0 additions and 80 deletions
-2
View File
@@ -1,3 +1 @@
DIST ezmlm-0.53.tar.gz 62693 BLAKE2B f417522da8d2b3ae7d0465e7226cd95dc85b55a397b61a6ce20df15544639377667a8912f7a26daf83e54fd3f26881c4e771409c98a640b7b94c7b6e3fef7461 SHA512 0dc1c64168428c531dbf78ca99582de4d4193d10bb38e87d3ee8f33f78083dc696bfd0681e3f2f690d7aa78b55b1b91c4ea6900c109406063445104826ff6d94
DIST ezmlm-idx-6.0.0.tar.gz 659996 BLAKE2B bf5f7ac0a40d1167d42ef26c4b28f95899f5a72d4c969c975368f61902f5ce9b5721143c251cdcb70c58149e6d7eb28c834b26426d9611b4249a285b523c38d8 SHA512 547186a2e32f3861ef51a9012442e7d8b553d90f2af949bb51845c29178ee2a44760471852c7c23fbd241c14753f22357463c5d5f10b70eceb05603cc6d83d4a
DIST ezmlm-idx-7.0.0.tar.gz 689019 BLAKE2B 22c66a4a2fcc6c0c754061ff0d93bde8fd192266112da0516e936278610288dc11d44d1959cd135a90eacb4befa43d62f53b3bedb94e994afc13aed986834bce SHA512 c0fc35aef4a72aefa4cdaee4c1933cc00aab82ee81ad7577793952fbf57106c06e4a5844a2bbf3919ad2985d2062ba1edf8831e6aa66d7e762210e7e147210ef
-78
View File
@@ -1,78 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=0
EZMLM_P=ezmlm-0.53
inherit eutils fixheadtails
DESCRIPTION="Simple yet powerful mailing list manager for qmail"
HOMEPAGE="http://www.ezmlm.org"
SRC_URI="http://cr.yp.to/software/${EZMLM_P}.tar.gz
http://www.ezmlm.org/archive/${PV}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 hppa ~mips ppc sparc x86"
IUSE="mysql postgres"
DEPEND="
mysql? ( virtual/mysql )
postgres? ( dev-db/postgresql )
"
RDEPEND="${DEPEND}
virtual/qmail"
S="${WORKDIR}"/${EZMLM_P}
pkg_setup() {
if use mysql && use postgres; then
die "cannot build mysql and pgsql support at the same time"
fi
}
src_unpack() {
unpack ${A}
mv "${WORKDIR}"/${P}/* "${S}" || die
cd "${S}"
epatch "${S}"/idx.patch
ht_fix_file Makefile
echo /usr/bin > conf-bin
echo /usr/lib/ezmlm > conf-lib
echo /etc/ezmlm > conf-etc
echo /usr/share/man > conf-man
echo /var/qmail > conf-qmail
echo $(tc-getCC) ${CFLAGS} -I/usr/include/{my,postgre}sql > conf-cc
echo $(tc-getCC) ${CFLAGS} > conf-ld
# fix DESTDIR and skip cat man-pages
sed -e "s:\(/install\) \(\"\`head\):\1 ${D}\2:" \
-e "s:\(./install.*\) < MAN$:grep -v \:/cat MAN | \1:" \
-e "s:\(\"\`head -n 1 conf-etc\`\"/default\):${D}\1:" \
-i Makefile
# ezmlm-mktab-{my|pg}sql may or may not be made
sed -i -e "s/\(^.*mktab\)/?\1/" BIN
}
src_compile() {
emake it man || die "make failed"
if use mysql; then
emake mysql || die "make mysql failed"
elif use postgres; then
emake pgsql || die "make pgsql failed"
fi
}
src_install () {
dodir /usr/bin /usr/lib/ezmlm /etc/ezmlm /usr/share/man
dobin ezmlm-cgi
make DESTDIR="${D}" setup || die "make setup failed"
}