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.
gentoo-overlay/app-text/yodl/yodl-3.03.0.ebuild

44 lines
1.1 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/yodl/yodl-3.03.0.ebuild,v 1.1 2013/12/02 09:52:01 radhermit Exp $
EAPI=5
inherit toolchain-funcs
DESCRIPTION="Your Own Document Language: a pre-document language and tools to process it"
HOMEPAGE="http://yodl.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.orig.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
DEPEND="dev-util/icmake"
src_prepare() {
sed -e "/DOC.* =/s/yodl\(-doc\)\?/${PF}/" \
-e "/COMPILER =/s/gcc/$(tc-getCC)/" \
-i INSTALL.im || die
sed -e "s/ar ru/$(tc-getAR) ru/" \
-e "s/ranlib/$(tc-getRANLIB)/" \
-i icmake/stdcompile || die
}
src_compile() {
./build programs || die
./build man || die
use doc && { ./build manual || die ; }
./build macros || die
}
src_install() {
./build install programs "${ED}" || die
./build install man "${ED}" || die
./build install macros "${ED}" || die
./build install docs "${ED}" || die
use doc && { ./build install manual "${ED}" || die ; }
}