aboutsummaryrefslogtreecommitdiff
blob: c88c7fd61fb7ae161e8c8f08ab9f7854e66de65e (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit eutils gnome2-utils mono-env dotnet versionator autotools git-r3

DESCRIPTION="A flexible, irssi-like and user-friendly IRC client for the Gnome Desktop"
HOMEPAGE="http://www.smuxi.org/main/"
EGIT_REPO_URI="https://github.com/meebey/smuxi"
# https://github.com/meebey/smuxi/releases/tag/1.0.7
EGIT_COMMIT="a63e6236bb241c018633c380c99554c38a83f6ad"
EGIT_BRANCH="release/1.0"

SRC_URI="https://github.com/meebey/smuxi/archive/${PV}.tar.gz -> ${P}.tar.gz"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="dbus debug gtk libnotify spell nls"
LICENSE="|| ( GPL-2 GPL-3 )"

CDEPEND=">=dev-lang/mono-4.0.2.5
	>=dev-dotnet/smartirc4net-1.0
	dev-libs/stfl
	>=dev-dotnet/log4net-1.2.10
	>=dev-dotnet/nini-1.1.0-r2
	gtk? ( >=dev-dotnet/gtk-sharp-2.12.21:2 )
	libnotify? ( >=dev-dotnet/notify-sharp-0.4 )
	libnotify? ( <dev-dotnet/notify-sharp-3 )
	dbus? ( >=dev-dotnet/dbus-sharp-glib-0.6:* )
	spell? ( >=app-text/gtkspell-2.0.9:2 )
"
DEPEND="${CDEPEND}
	>=dev-util/intltool-0.25
	>=sys-devel/gettext-0.17
	virtual/pkgconfig
"
RDEPEND="${CDEPEND}"

pkg_preinst() {
	gnome2_icon_savelist
}

src_prepare() {
	default

	# https://github.com/meebey/smuxi/issues/86
	# eautoreconf
	./autogen.sh | die "Could not run autogen.sh"
}

src_configure() {
	# Our dev-dotnet/db4o is completely unmaintained
	# We don't have ubuntu stuff
	econf \
	--enable-engine-irc		\
	--without-indicate		\
	--with-vendor-package-version="Gentoo ${PV}" \
	--with-db4o=included \
	--with-messaging-menu=no \
	--with-indicate=no \
	$(use_enable debug)		\
	$(use_enable gtk frontend-gnome) \
	$(use_enable nls)		\
	$(use_with libnotify notify) \
	$(use_with spell gtkspell)

	touch README
}

src_compile() {
	default
}

src_install() {
	default
	# desktop icon is installed with /usr/share/applications/smuxi-frontend-gnome.desktop
}

pkg_postinst() {
	gnome2_icon_cache_update
}

pkg_postrm() {
	gnome2_icon_cache_update
}