Diff ezmlm-idx-7.0.0-r5 with a ezmlm-idx-7.2.2-r1

/usr/portage/net-mail/ezmlm-idx/ezmlm-idx-7.2.2-r1.ebuild 2023-10-09 14:52:34.612368479 +0300
6 6
inherit qmail toolchain-funcs
7 7

  
8 8
DESCRIPTION="Simple yet powerful mailing list manager for qmail"
9
HOMEPAGE="http://www.ezmlm.org"
10
SRC_URI="http://www.ezmlm.org/archive/${PV}/${P}.tar.gz"
9
HOMEPAGE="https://untroubled.org/ezmlm"
10
SRC_URI="https://untroubled.org/ezmlm/archive/${PV}/${P}.tar.gz"
11 11

  
12 12
LICENSE="GPL-2"
13 13
SLOT="0"
14 14
KEYWORDS="~alpha amd64 ~hppa ~mips sparc x86"
15
IUSE="mysql postgres"
15
#KEYWORDS="~alpha amd64 ~hppa ~mips ppc sparc x86"
16
IUSE="mysql postgres sqlite"
16 17

  
17 18
DEPEND="mysql? ( dev-db/mysql-connector-c:0= )
18
	postgres? ( dev-db/postgresql:* )"
19
	postgres? ( dev-db/postgresql:* )
20
	sqlite? ( dev-db/sqlite:3 )"
19 21
RDEPEND="${DEPEND}
20 22
	virtual/qmail"
21
REQUIRED_USE="?? ( mysql postgres )"
22

  
23
PATCHES=( "${FILESDIR}/${PN}-7.0.0-fno-common.patch" )
23
REQUIRED_USE="?? ( mysql postgres sqlite )"
24 24

  
25 25
src_prepare() {
26 26
	default
......
31 31
	echo ${QMAIL_HOME} > conf-qmail || die
32 32

  
33 33
	echo $(tc-getCC) ${CFLAGS} -I/usr/include/{my,postgre}sql > conf-cc || die
34
	echo $(tc-getCC) ${CFLAGS} -Wl,-E > conf-ld || die
34
	echo $(tc-getCC) ${LDFLAGS} -Wl,-E > conf-ld || die
35 35

  
36 36
	# fix DESTDIR and skip cat man-pages
37
	sed -e "s:\(/install\) \(\"\`head\):\1 ${D}\2:" \
37
	sed -e "s:\(/installer\) \(\"\`head\):\1 ${D}\2:" \
38 38
		-e "s:\(./install.*\) < MAN$:grep -v \:/cat MAN | \1:" \
39 39
		-e "s:\(\"\`head -n 1 conf-etc\`\"/default\):${D}\1:" \
40 40
		-i Makefile || die
41 41
}
42 42

  
43 43
src_compile() {
44
	emake it man
44
	emake it man installer
45 45

  
46 46
	if use mysql; then
47 47
		emake mysql
48 48
	elif use postgres; then
49 49
		emake pgsql
50
	elif use sqlite; then
51
		emake sqlite3
50 52
	fi
51 53
}
52 54

  
53 55
src_install() {
54 56
	dodir /usr/bin /usr/$(get_libdir)/ezmlm /etc/ezmlm /usr/share/man
55
	dobin ezmlm-{cgi,checksub,import,rmtab}
56

  
57
	make DESTDIR="${D}" setup || die "make setup failed"
57
	default
58 58
}
Thank you!