summaryrefslogtreecommitdiff
blob: b571262299b608e5d08e5b3836351f822d2a7684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

DESCRIPTION="An implementation of John Gruber's Markdown text to html language written in C"
HOMEPAGE="http://www.pell.portland.or.us/~orc/Code/discount/"
SRC_URI="http://www.pell.portland.or.us/~orc/Code/${PN}/${P}.tar.bz2"

LICENSE="DLPARSONS"
SLOT="0"
KEYWORDS="~x86"
IUSE="minimal"

src_prepare() {
	# for QA, we remove the Makefiles usage of install -s
	sed -e '/INSTALL_PROGRAM/s#-s ##' -i configure.inc \
	|| die "sed can't fix stripping of files"
}

src_configure() {
	local myconf
	use minimal || myconf="--enable-all-features"

	./configure.sh "${myconf}" \
	--prefix=/usr \
	--mandir=/usr/share/man \
	|| die
}

src_install() {
	local myinstall
	use minimal && myinstall="install" || myinstall="install.everything"
	emake DESTDIR="${D}" ${myinstall}
}