You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
997 B
55 lines
997 B
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit autotools
|
|
|
|
DESCRIPTION="C++ MIME library designed to be easy to use and integrate, fast and efficient."
|
|
HOMEPAGE="http://www.codesink.org/mimetic_mime_library.html"
|
|
SRC_URI="http://www.codesink.org/download/${P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~ppc64 x86"
|
|
IUSE="doc examples"
|
|
|
|
BDEPEND="doc? ( app-doc/doxygen )"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/signed-char.patch"
|
|
"${FILESDIR}/${P}-build-mmap.patch"
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
sed -i -e "s|../doxygen.css|doxygen.css|" doc/header.html || die
|
|
|
|
mv configure.in configure.ac || die
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
econf --disable-static
|
|
}
|
|
|
|
src_compile() {
|
|
default
|
|
use doc && emake -C doc docs
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
use doc && dodoc -r doc/html/
|
|
|
|
if use examples ; then
|
|
docinto examples
|
|
dodoc examples/{README,TODO,test.msg,*.cxx,*.h}
|
|
fi
|
|
|
|
# bug #778887
|
|
find "${ED}" -name '*.la' -delete || die
|
|
}
|