mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-07 21:55:04 +02:00
36 lines
858 B
Bash
36 lines
858 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="An HTML preprocessor"
|
|
HOMEPAGE="http://htp.sourceforge.net/"
|
|
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
|
|
|
|
LICENSE="Clarified-Artistic"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-1.19-no-prestrip.patch
|
|
"${FILESDIR}"/${PN}-1.19-parallel-make.patch
|
|
"${FILESDIR}"/${PN}-1.19-fix-perl-5.26.patch
|
|
)
|
|
|
|
src_compile() {
|
|
# TODO: Tests are always run by the Makefile right now
|
|
emake \
|
|
CCOPT="-c ${CFLAGS} ${CPPFLAGS} -DHAVE_SNPRINTF -DHAVE_VASPRINTF -DHAVE_ASPRINTF" \
|
|
CC="$(tc-getCC)" \
|
|
LINK='$(CC) $(LDFLAGS)'
|
|
}
|
|
|
|
src_install() {
|
|
emake \
|
|
DESTDIR="${D}" \
|
|
prefix='$(DESTDIR)/usr' \
|
|
pkgdocdir='$(DESTDIR)/usr/share/doc/${PF}/html' \
|
|
install
|
|
}
|