Skip to content

Commit

Permalink
media-gfx/wings: Fix include_lib (wx) (bug #585654).
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.0_rc1
  • Loading branch information
Jeroen Roovers committed Jun 12, 2016
1 parent f5a5468 commit ea8a91a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 10 additions & 0 deletions media-gfx/wings/files/wings-2.0.4-wx.patch
Original file line number Diff line number Diff line change
@@ -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
8 changes: 7 additions & 1 deletion media-gfx/wings/wings-2.0.4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ea8a91a

Please sign in to comment.