summaryrefslogtreecommitdiff
blob: 332d7f9de3ab2d52061c4a68ecfd87fa26228fdc (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
43
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/monouml/monouml-0.1.ebuild,v 1.4 2007/07/27 07:13:45 opfer Exp $

inherit mono eutils

MY_PV=20050529
MY_P=${P}-${MY_PV}
EC_P=expertcoder-bin-20050503

DESCRIPTION="CASE tool based on Mono Framework"
HOMEPAGE="http://www.monouml.org"
SRC_URI="http://forge.novell.com/modules/xfcontent/private.php/${PN}/MonoUML/${MY_P}.tar.gz
		mirror://sourceforge/expertcoder/${EC_P}.zip"

LICENSE="GPL-2"
IUSE=""
DEPEND=">=dev-lang/mono-1.1.4
	    >=dev-dotnet/gtk-sharp-1.9.2
		>=dev-dotnet/gnome-sharp-1.9.2
		>=dev-dotnet/glade-sharp-1.9.2
		app-arch/unzip"

KEYWORDS="~amd64 x86"
SLOT="0"

src_unpack() {
	unpack ${A}
	cd ${S}

	cp ${WORKDIR}/${EC_P}/*.dll ${WORKDIR}/${P}/bin/ || die
}

src_install() {
	make DESTDIR=${D} install || die

	# Workaround for messed up paths
	dodir /usr/$(get_libdir)
	mv ${D}/usr/monouml ${D}/usr/$(get_libdir)/
	sed -i -e "s#/usr/${PN}#/usr/$(get_libdir)/${PN}#g" ${D}/usr/bin/monouml

	dodoc ChangeLog README AUTHORS
}