summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2016-06-12 10:37:04 +0200
committerJeroen Roovers <jer@gentoo.org>2016-06-12 10:37:43 +0200
commitea8a91afdf24a71f531ac482560e04569c6ee2b9 (patch)
tree7d69c9566752bf3b535dfa077622fe766e21c5a6 /media-gfx/wings
parentdev-libs/zthread: Whitespace (diff)
downloadgentoo-ea8a91afdf24a71f531ac482560e04569c6ee2b9.tar.gz
gentoo-ea8a91afdf24a71f531ac482560e04569c6ee2b9.tar.bz2
gentoo-ea8a91afdf24a71f531ac482560e04569c6ee2b9.zip
media-gfx/wings: Fix include_lib (wx) (bug #585654).
Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'media-gfx/wings')
-rw-r--r--media-gfx/wings/files/wings-2.0.4-wx.patch10
-rw-r--r--media-gfx/wings/wings-2.0.4.ebuild8
2 files changed, 17 insertions, 1 deletions
diff --git a/media-gfx/wings/files/wings-2.0.4-wx.patch b/media-gfx/wings/files/wings-2.0.4-wx.patch
new file mode 100644
index 000000000000..a50f3d50ac95
--- /dev/null
+++ b/media-gfx/wings/files/wings-2.0.4-wx.patch
@@ -0,0 +1,10 @@
+--- a/plugins_src/primitives/wpc_tt.erl
++++ b/plugins_src/primitives/wpc_tt.erl
+@@ -21,6 +21,7 @@
+
+ -include_lib("wings/src/wings.hrl").
+ -include_lib("wings/e3d/e3d.hrl").
++-include_lib("wx/include/wx.hrl").
+
+ -record(ttfont,
+ {nglyph, % number of glyphs
diff --git a/media-gfx/wings/wings-2.0.4.ebuild b/media-gfx/wings/wings-2.0.4.ebuild
index 67b2700c13a4..e295638ad526 100644
--- a/media-gfx/wings/wings-2.0.4.ebuild
+++ b/media-gfx/wings/wings-2.0.4.ebuild
@@ -20,7 +20,13 @@ RDEPEND="
"
DEPEND="${RDEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.4-wx.patch
+)
+
src_prepare() {
+ default
+
sed -i \
-e '/include_lib/s|wings/|../|' \
plugins_src/primitives/wpc_knot.erl \
@@ -54,7 +60,7 @@ src_install() {
find -name 'Makefile*' -exec rm -f '{}' \;
insinto ${WINGS_PATH}
- doins -r e3d ebin fonts icons plugins psd shaders src textures tools
+ doins -r e3d ebin icons plugins psd shaders src textures tools
dosym ${WINGS_PATH} ${ERL_PATH}/${PN}
dosym ${ESDL_PATH} ${ERL_PATH}/esdl