summaryrefslogtreecommitdiff
path: root/recipes/monotone/monotone.inc
blob: 319309f0702fc04d7e2eb5a8b0ba82c6a9a093aa (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
37
38
39
40
41
42
DESCRIPTION = "Monotone is a distributed Source Control System"
HOMEPAGE = "http://www.venge.net/"
SECTION = "devel"
PRIORITY = "optional"
LICENSE = "MIT"
DEPENDS = "boost"

# Following may be required, not proved yet...
#TARGET_CFLAGS += "-fno-strict-aliasing"

S = "${WORKDIR}/monotone-${PV}"

# no cross compile support - it tries to run the test program even with
# --enable_ipv6=yes
EXTRA_OECONF = "--disable-ipv6 \
		--disable-dependency-tracking \
		--disable-rpath \
		--disable-nls \
		--with-gnu-ld \
		--with-bundled-lua --with-bundled-sqlite"

inherit autotools update-alternatives

ALTERNATIVE_NAME = "monotone"
ALTERNATIVE_LINK = "${bindir}/monotone"
ALTERNATIVE_PATH = "${bindir}/${PN}"
ALTERNATIVE_PRIORITY = "40"

# This makes the testsuite as a package and renames the monotone executable
# to include the netsync suffix.
do_install_append() {
	install -d ${D}${tsd}
	install -c -m 755 testsuite ${D}${tsd}/testsuite
	cp -pPR tests ${D}${tsd}/tests
	#
	mv ${D}${bindir}/monotone ${D}${bindir}/${PN}
}

PACKAGES = "${PN}-dbg ${PN} ${PN}-doc ${PN}-testsuite"
tsd = "/home/monotone/${PN}"
FILES_${PN}-testsuite = "${tsd}/testsuite ${tsd}/tests"
RDEPENDS_${PN}-testsuite += "bash sed grep cvs patch perl perl-modules"