forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
poedit-1.5.5.ebuild
46 lines (35 loc) · 915 Bytes
/
poedit-1.5.5.ebuild
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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
WX_GTK_VER=2.8
inherit eutils fdo-mime flag-o-matic wxwidgets
DESCRIPTION="Cross-platform gettext catalogs (.po files) editor"
HOMEPAGE="http://poedit.sourceforge.net/"
SRC_URI="mirror://sourceforge/poedit/${P}.tar.gz"
LICENSE="MIT CC-BY-2.5 CC-BY-SA-2.5"
SLOT="0"
KEYWORDS="amd64 hppa ppc sparc x86"
IUSE="spell"
RDEPEND="dev-libs/boost
>=sys-libs/db-4.7:*
x11-libs/wxGTK:2.8[X]
spell? ( app-text/gtkspell:2 )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
epatch "${FILESDIR}"/${P}-wx28.patch
}
src_configure() {
append-flags -fno-strict-aliasing
econf $(use_enable spell spellchecking)
}
src_install() {
emake DESTDIR="${D}" install
dodoc AUTHORS NEWS README TODO
}
pkg_postinst() {
fdo-mime_desktop_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
}