summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaohiro Aota <naota@gentoo.org>2013-04-06 11:25:14 +0900
committerNaohiro Aota <naota@gentoo.org>2013-04-06 11:25:14 +0900
commit24552a40445ff803605642bb1fde12ad70f2d6cb (patch)
treebb304769cdd846d3ec55989168145754b1345964 /app-shells
parentwww-client/chromium-bin-debian: Add missing dependency on systemd (diff)
downloadbetagarden-24552a40445ff803605642bb1fde12ad70f2d6cb.tar.gz
betagarden-24552a40445ff803605642bb1fde12ad70f2d6cb.tar.bz2
betagarden-24552a40445ff803605642bb1fde12ad70f2d6cb.zip
New package app-shells/xyzsh
Package-Manager: portage-2.2.0_alpha166
Diffstat (limited to 'app-shells')
-rw-r--r--app-shells/xyzsh/ChangeLog9
-rw-r--r--app-shells/xyzsh/Manifest1
-rw-r--r--app-shells/xyzsh/files/xyzsh-1.3.9-cflags.patch13
-rw-r--r--app-shells/xyzsh/files/xyzsh-1.3.9-configure.patch14
-rw-r--r--app-shells/xyzsh/files/xyzsh-1.3.9-gcc.patch48
-rw-r--r--app-shells/xyzsh/files/xyzsh-1.3.9-ldflags.patch52
-rw-r--r--app-shells/xyzsh/files/xyzsh-1.3.9-libdl.patch13
-rw-r--r--app-shells/xyzsh/files/xyzsh-1.3.9-make.patch22
-rw-r--r--app-shells/xyzsh/files/xyzsh-1.3.9-soname.patch13
-rw-r--r--app-shells/xyzsh/files/xyzsh-1.3.9-strip.patch39
-rw-r--r--app-shells/xyzsh/files/xyzsh-1.3.9-tinfo.patch12
-rw-r--r--app-shells/xyzsh/metadata.xml7
-rw-r--r--app-shells/xyzsh/xyzsh-1.3.9.ebuild41
13 files changed, 284 insertions, 0 deletions
diff --git a/app-shells/xyzsh/ChangeLog b/app-shells/xyzsh/ChangeLog
new file mode 100644
index 0000000..1814397
--- /dev/null
+++ b/app-shells/xyzsh/ChangeLog
@@ -0,0 +1,9 @@
+*xyzsh-1.3.9 (06 Apr 2013)
+
+ 06 Apr 2013; Naohiro Aota <naota@gentoo.org> +files/xyzsh-1.3.9-cflags.patch,
+ +files/xyzsh-1.3.9-configure.patch, +files/xyzsh-1.3.9-gcc.patch,
+ +files/xyzsh-1.3.9-ldflags.patch, +files/xyzsh-1.3.9-libdl.patch,
+ +files/xyzsh-1.3.9-make.patch, +files/xyzsh-1.3.9-soname.patch,
+ +files/xyzsh-1.3.9-strip.patch, +files/xyzsh-1.3.9-tinfo.patch, +metadata.xml,
+ +xyzsh-1.3.9.ebuild:
+ New package app-shells/xyzsh
diff --git a/app-shells/xyzsh/Manifest b/app-shells/xyzsh/Manifest
new file mode 100644
index 0000000..9b79b61
--- /dev/null
+++ b/app-shells/xyzsh/Manifest
@@ -0,0 +1 @@
+DIST xyzsh-1.3.9.tgz 187021 SHA256 5a2c8abdf893f85b39824868684d180a6efb0c6833772238edf64c2e58e7e0c7 SHA512 e38bb36a047426556f3c84cd0e9927441e2c695ce6c20232257ec5ed13f31823a32742cceef61c5830b2858407ca68737eba296284eb09dabc023b440651b7fe WHIRLPOOL fb1d2034521b11bace3bad1299a180dea198bab11800d9d3eef1941e662c74557e98cb951b14589e021cb4efed196ccd9527750a02b7b632a7b769cb38edd3a0
diff --git a/app-shells/xyzsh/files/xyzsh-1.3.9-cflags.patch b/app-shells/xyzsh/files/xyzsh-1.3.9-cflags.patch
new file mode 100644
index 0000000..960be96
--- /dev/null
+++ b/app-shells/xyzsh/files/xyzsh-1.3.9-cflags.patch
@@ -0,0 +1,13 @@
+diff --git a/configure.in b/configure.in
+index 8949a08..5eedfa8 100644
+--- a/configure.in
++++ b/configure.in
+@@ -40,7 +40,7 @@ AC_MSG_CHECKING(Operating System)
+ OBJ="src/gc.o src/stack.o src/string.o src/list.o src/kanji.o src/debug.o src/hash.o src/vector.o src/block.o src/fun.o src/class.o src/completion.o src/xyzsh.o src/parser.o src/run.o src/readline.o src/curses.o src/cmd_base.o src/cmd_obj.o src/cmd_file.o src/cmd_str.o src/cmd_ary.o src/cmd_condition.o src/interface.o src/object.o src/uobject.o src/cmd_num.o src/cmd_curses.o src/fd.o src/nfun.o src/extprog.o"
+ AC_SUBST(OBJ)
+
+-CFLAGS='-DSYSCONFDIR="\"${sysconfdir}/\"" -DDOCDIR="\"${docdir}/\"" -DSYSTEM_MIGEMODIR="\"${SYSTEM_MIGEMODIR}\"" -DEXTDIR="\"${EXTDIR}\""'
++CFLAGS="${CFLAGS} "'-DSYSCONFDIR="\"${sysconfdir}/\"" -DDOCDIR="\"${docdir}/\"" -DSYSTEM_MIGEMODIR="\"${SYSTEM_MIGEMODIR}\"" -DEXTDIR="\"${EXTDIR}\""'
+
+ if test `uname -s` = "Darwin"; then
+ echo "Darwin"
diff --git a/app-shells/xyzsh/files/xyzsh-1.3.9-configure.patch b/app-shells/xyzsh/files/xyzsh-1.3.9-configure.patch
new file mode 100644
index 0000000..2e12a3c
--- /dev/null
+++ b/app-shells/xyzsh/files/xyzsh-1.3.9-configure.patch
@@ -0,0 +1,14 @@
+diff --git a/configure.in b/configure.in
+index 2d62da1..3f660e7 100644
+--- a/configure.in
++++ b/configure.in
+@@ -23,7 +23,8 @@ AC_ARG_WITH(optimize, [ --with-optimize with optimize(-O in
+ AC_ARG_WITH(onig-dir, [ --with-onig-dir=DIR set install prefix of oniguruma which located at non standerd directory and installed by user ], [ ONIG_DIR="$withval" ], [ ONIG_DIR= ])
+ AC_ARG_WITH(readline-dir, [ --with-readline-dir=DIR set readline install prefix ], [ READLINE_DIR="$withval" ], [ READLINE_DIR= ])
+ AC_ARG_WITH(static,[ --with-static link xyzsh used libraries with static to make xyzsh doesn't require any libraries.], [ STATIC_LINK=1 ], [STATIC_LINK= ] )
+-AC_ARG_WITH(migemo, [ --with-migemo enable migemo for japanese romaji completion ], [ ENABLE_MIGEMO=1 ], [ ENABLE_MIGEMO=0 ])
++AC_ARG_ENABLE(migemo, [ --enable-migemo enable migemo for japanese romaji completion ],
++ [ if x"$enableval" = xyes; then ENABLE_MIGEMO=1; else ENABLE_MIGEMO=0; fi ], [ ENABLE_MIGEMO=0 ])
+ AC_ARG_WITH(migemo-dir, [ --with-migemo-dir=DIR set migemo install prefix ], [ MIGEMO_DIR="$withval" ], [ MIGEMO_DIR= ])
+ AC_ARG_WITH(system-migemodir,[ --with-system-migemodir specify the directory of system migemo dictionary. /usr/share/migemo, for example], [ if test -n "$withval"; then echo "system-migemodir = $withval" ; SYSTEM_MIGEMODIR="$withval"; fi ], [ if test -e /usr/local/share/migemo/utf-8/migemo-dict; then SYSTEM_MIGEMODIR=/usr/local/share/migemo; else SYSTEM_MIGEMODIR=/usr/share/cmigemo; fi ] )
+
diff --git a/app-shells/xyzsh/files/xyzsh-1.3.9-gcc.patch b/app-shells/xyzsh/files/xyzsh-1.3.9-gcc.patch
new file mode 100644
index 0000000..f3f9065
--- /dev/null
+++ b/app-shells/xyzsh/files/xyzsh-1.3.9-gcc.patch
@@ -0,0 +1,48 @@
+diff --git a/Makefile.in b/Makefile.in
+index c0cc0d4..29a3dbb 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -65,7 +65,7 @@ lib-dest-install:
+ # xyzsh libraries
+ ########################################################
+ libxyzsh.so.$(SO_VERSION): $(OBJ)
+- gcc -shared -o libxyzsh.so.$(SO_VERSION) -Wl,-soname=libxyzsh.so.$(SO_VERSION) $(OBJ) -lc $(LIBS) $(CFLAGS) $(LDFLAGS)
++ $(CC) -shared -o libxyzsh.so.$(SO_VERSION) -Wl,-soname=libxyzsh.so.$(SO_VERSION) $(OBJ) -lc $(LIBS) $(CFLAGS) $(LDFLAGS)
+
+ libxyzsh.so: libxyzsh.so.$(SO_VERSION)
+ ln -s libxyzsh.so.$(SO_VERSION) libxyzsh.so.1
+@@ -80,7 +80,7 @@ libxyzsh.a: $(OBJ)
+ # xyzsh libraries on Darwin
+ ########################################################
+ libxyzsh.$(SO_VERSION).dylib: $(OBJ)
+- gcc -dynamiclib -o libxyzsh.$(SO_VERSION).dylib $(OBJ) -lc $(LIBS) $(CFLAGS) $(LDFLAGS)
++ $(CC) -dynamiclib -o libxyzsh.$(SO_VERSION).dylib $(OBJ) -lc $(LIBS) $(CFLAGS) $(LDFLAGS)
+
+ libxyzsh.dylib: libxyzsh.$(SO_VERSION).dylib
+ cp libxyzsh.$(SO_VERSION).dylib libxyzsh.1.dylib
+@@ -97,10 +97,10 @@ $(OBJ): src/xyzsh/xyzsh.h src/xyzsh/block.h src/xyzsh/curses.h src/xyzsh/debug.h
+ extension: $(EXTOBJ)
+
+ src/ext/migemo.so: src/ext/migemo.c
+- gcc -shared src/ext/migemo.c -o src/ext/migemo.so $(CFLAGS) $(LDFLAGS) -lmigemo -lxyzsh $(LIBS)
++ $(CC) -shared src/ext/migemo.c -o src/ext/migemo.so $(CFLAGS) $(LDFLAGS) -lmigemo -lxyzsh $(LIBS)
+
+ src/ext/migemo.dll: src/ext/migemo.c
+- gcc -shared src/ext/migemo.c -o src/ext/migemo.dll $(CFLAGS) $(LDFLAGS) -lmigemo -lxyzsh $(LIBS)
++ $(CC) -shared src/ext/migemo.c -o src/ext/migemo.dll $(CFLAGS) $(LDFLAGS) -lmigemo -lxyzsh $(LIBS)
+
+ #########################################################
+ # install
+diff --git a/configure.in b/configure.in
+index 5eedfa8..1085a3f 100644
+--- a/configure.in
++++ b/configure.in
+@@ -202,7 +202,7 @@ AC_SUBST(CFLAGS)
+ ##########################################################
+ # environmnet variables
+ ##########################################################
+-CC=gcc
++# CC=gcc
+ INSTALL="/usr/bin/install -c"
+
+ ######################################################################
diff --git a/app-shells/xyzsh/files/xyzsh-1.3.9-ldflags.patch b/app-shells/xyzsh/files/xyzsh-1.3.9-ldflags.patch
new file mode 100644
index 0000000..2119852
--- /dev/null
+++ b/app-shells/xyzsh/files/xyzsh-1.3.9-ldflags.patch
@@ -0,0 +1,52 @@
+diff --git a/Makefile.in b/Makefile.in
+index c223bad..52a6624 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -19,6 +19,7 @@ docdir=@datadir@/doc/xyzsh
+ CC=@CC@
+ INSTALL=@INSTALL@
+ CFLAGS=@CFLAGS@
++LDFLAGS=@LDFLAGS@
+ LIBS=@LIBS@
+ OBJ=@OBJ@
+ EXTOBJ=@EXTOBJ@
+@@ -38,7 +39,7 @@ all: lib xyzsh extension
+ rm -f install
+
+ xyzsh: config.h src/main.c $(LIBXYZSHSO) $(LIBXYZSHA)
+- $(CC) -o xyzsh src/main.c $(CFLAGS:-static=) -lxyzsh $(LIBS)
++ $(CC) -o xyzsh src/main.c $(CFLAGS:-static=) $(LDFLAGS) -lxyzsh $(LIBS)
+
+ lib: $(LIBXYZSHSO1) $(LIBXYZSHA)
+ rm -f install
+@@ -64,7 +65,7 @@ lib-dest-install:
+ # xyzsh libraries
+ ########################################################
+ libxyzsh.so.$(SO_VERSION): $(OBJ)
+- gcc -shared -o libxyzsh.so.$(SO_VERSION) -Wl,-soname=libxyzsh.so.$(SO_VERSION) $(OBJ) -lc $(LIBS) $(CFLAGS)
++ gcc -shared -o libxyzsh.so.$(SO_VERSION) -Wl,-soname=libxyzsh.so.$(SO_VERSION) $(OBJ) -lc $(LIBS) $(CFLAGS) $(LDFLAGS)
+
+ libxyzsh.so: libxyzsh.so.$(SO_VERSION)
+ ln -s libxyzsh.so.$(SO_VERSION) libxyzsh.so.1
+@@ -79,7 +80,7 @@ libxyzsh.a: $(OBJ)
+ # xyzsh libraries on Darwin
+ ########################################################
+ libxyzsh.$(SO_VERSION).dylib: $(OBJ)
+- gcc -dynamiclib -o libxyzsh.$(SO_VERSION).dylib $(OBJ) -lc $(LIBS) $(CFLAGS)
++ gcc -dynamiclib -o libxyzsh.$(SO_VERSION).dylib $(OBJ) -lc $(LIBS) $(CFLAGS) $(LDFLAGS)
+
+ libxyzsh.dylib: libxyzsh.$(SO_VERSION).dylib
+ cp libxyzsh.$(SO_VERSION).dylib libxyzsh.1.dylib
+@@ -96,10 +97,10 @@ $(OBJ): src/xyzsh/xyzsh.h src/xyzsh/block.h src/xyzsh/curses.h src/xyzsh/debug.h
+ extension: $(EXTOBJ)
+
+ src/ext/migemo.so: src/ext/migemo.c
+- gcc -shared src/ext/migemo.c -o src/ext/migemo.so $(CFLAGS) -lmigemo -lxyzsh $(LIBS)
++ gcc -shared src/ext/migemo.c -o src/ext/migemo.so $(CFLAGS) $(LDFLAGS) -lmigemo -lxyzsh $(LIBS)
+
+ src/ext/migemo.dll: src/ext/migemo.c
+- gcc -shared src/ext/migemo.c -o src/ext/migemo.dll $(CFLAGS) -lmigemo -lxyzsh $(LIBS)
++ gcc -shared src/ext/migemo.c -o src/ext/migemo.dll $(CFLAGS) $(LDFLAGS) -lmigemo -lxyzsh $(LIBS)
+
+ #########################################################
+ # install
diff --git a/app-shells/xyzsh/files/xyzsh-1.3.9-libdl.patch b/app-shells/xyzsh/files/xyzsh-1.3.9-libdl.patch
new file mode 100644
index 0000000..5dc0767
--- /dev/null
+++ b/app-shells/xyzsh/files/xyzsh-1.3.9-libdl.patch
@@ -0,0 +1,13 @@
+diff --git a/configure.in b/configure.in
+index 1085a3f..3cfd494 100644
+--- a/configure.in
++++ b/configure.in
+@@ -273,6 +273,8 @@ then
+ fi
+ fi
+
++AC_CHECK_LIB([dl],[dlopen])
++
+ AC_SUBST(EXTOBJ)
+ AC_SUBST(LIBS)
+ AC_SUBST(EXTDIR)
diff --git a/app-shells/xyzsh/files/xyzsh-1.3.9-make.patch b/app-shells/xyzsh/files/xyzsh-1.3.9-make.patch
new file mode 100644
index 0000000..15f153e
--- /dev/null
+++ b/app-shells/xyzsh/files/xyzsh-1.3.9-make.patch
@@ -0,0 +1,22 @@
+diff --git a/Makefile.in b/Makefile.in
+index b1d5088..c0cc0d4 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -45,7 +45,7 @@ lib: $(LIBXYZSHSO1) $(LIBXYZSHA)
+ rm -f install
+
+ lib-install:
+- if [ -z "$(DESTDIR)" ]; then make lib-normal-install; else make lib-dest-install; fi
++ if [ -z "$(DESTDIR)" ]; then $(MAKE) lib-normal-install; else $(MAKE) lib-dest-install; fi
+
+ lib-normal-install:
+ mkdir -p "$(libdir)"
+@@ -106,7 +106,7 @@ src/ext/migemo.dll: src/ext/migemo.c
+ # install
+ #########################################################
+ install: lib-install
+- if [ -z "$(DESTDIR)" ]; then make normal-install; else make dest-install; fi
++ if [ -z "$(DESTDIR)" ]; then $(MAKE) normal-install; else $(MAKE) dest-install; fi
+
+ normal-install:
+ mkdir -p "$(bindir)"
diff --git a/app-shells/xyzsh/files/xyzsh-1.3.9-soname.patch b/app-shells/xyzsh/files/xyzsh-1.3.9-soname.patch
new file mode 100644
index 0000000..bea2fb7
--- /dev/null
+++ b/app-shells/xyzsh/files/xyzsh-1.3.9-soname.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile.in b/Makefile.in
+index c15fb20..c223bad 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -64,7 +64,7 @@ lib-dest-install:
+ # xyzsh libraries
+ ########################################################
+ libxyzsh.so.$(SO_VERSION): $(OBJ)
+- gcc -shared -o libxyzsh.so.$(SO_VERSION) $(OBJ) -lc $(LIBS) $(CFLAGS)
++ gcc -shared -o libxyzsh.so.$(SO_VERSION) -Wl,-soname=libxyzsh.so.$(SO_VERSION) $(OBJ) -lc $(LIBS) $(CFLAGS)
+
+ libxyzsh.so: libxyzsh.so.$(SO_VERSION)
+ ln -s libxyzsh.so.$(SO_VERSION) libxyzsh.so.1
diff --git a/app-shells/xyzsh/files/xyzsh-1.3.9-strip.patch b/app-shells/xyzsh/files/xyzsh-1.3.9-strip.patch
new file mode 100644
index 0000000..0b12483
--- /dev/null
+++ b/app-shells/xyzsh/files/xyzsh-1.3.9-strip.patch
@@ -0,0 +1,39 @@
+diff --git a/Makefile.in b/Makefile.in
+index 52a6624..b1d5088 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -50,14 +50,14 @@ lib-install:
+ lib-normal-install:
+ mkdir -p "$(libdir)"
+ if [ $(LIBXYZSHA) = libxyzsh.a ]; then $(INSTALL) -m 644 $(LIBXYZSHASTRIP) libxyzsh.a "$(libdir)"; fi
+- if [ $(LIBXYZSHSO) = libxyzsh.so ]; then if echo $(CFLAGS) | grep -q MDEBUG; then $(INSTALL) -m 755 libxyzsh.so.$(SO_VERSION) "$(libdir)"; else $(INSTALL) -s -m 755 libxyzsh.so.$(SO_VERSION) "$(libdir)"; fi; elif [ $(LIBXYZSHSO) = libxyzsh.dylib ]; then $(INSTALL) -m 755 libxyzsh.$(SO_VERSION).dylib "$(libdir)"; fi
++ if [ $(LIBXYZSHSO) = libxyzsh.so ]; then if echo $(CFLAGS) | grep -q MDEBUG; then $(INSTALL) -m 755 libxyzsh.so.$(SO_VERSION) "$(libdir)"; else $(INSTALL) -m 755 libxyzsh.so.$(SO_VERSION) "$(libdir)"; fi; elif [ $(LIBXYZSHSO) = libxyzsh.dylib ]; then $(INSTALL) -m 755 libxyzsh.$(SO_VERSION).dylib "$(libdir)"; fi
+ if [ $(LIBXYZSHSO) = libxyzsh.so ]; then ln -s -f libxyzsh.so.$(SO_VERSION) "$(libdir)"/libxyzsh.so.1; elif [ $(LIBXYZSHSO) = libxyzsh.dylib ]; then ln -s -f libxyzsh.$(SO_VERSION).dylib "$(libdir)"/libxyzsh.1.dylib; fi
+ if [ $(LIBXYZSHSO) = libxyzsh.so ]; then ln -s -f libxyzsh.so.$(SO_VERSION) "$(libdir)"/libxyzsh.so; elif [ $(LIBXYZSHSO) = libxyzsh.dylib ]; then ln -s -f libxyzsh.$(SO_VERSION).dylib "$(libdir)"/libxyzsh.dylib; fi
+
+ lib-dest-install:
+ mkdir -p "$(DESTDIR)/$(libdir)"
+ if [ "$(LIBXYZSHA)" = libxyzsh.a ]; then $(INSTALL) -m 644 $(LIBXYZSHASTRIP) libxyzsh.a "$(DESTDIR)/$(libdir)"; fi
+- if [ "$(LIBXYZSHSO)" = libxyzsh.so ]; then if echo $(CFLAGS) | grep -q MDEBUG; then $(INSTALL) -m 755 libxyzsh.so.$(SO_VERSION) "$(DESTDIR)/$(libdir)"; else $(INSTALL) -s -m 755 libxyzsh.so.$(SO_VERSION) "$(DESTDIR)/$(libdir)"; fi; elif [ "$(LIBXYZSHSO)" = libxyzsh.dylib ]; then $(INSTALL) -m 755 libxyzsh.$(SO_VERSION).dylib "$(DESTDIR)/$(libdir)"; fi
++ if [ "$(LIBXYZSHSO)" = libxyzsh.so ]; then if echo $(CFLAGS) | grep -q MDEBUG; then $(INSTALL) -m 755 libxyzsh.so.$(SO_VERSION) "$(DESTDIR)/$(libdir)"; else $(INSTALL) -m 755 libxyzsh.so.$(SO_VERSION) "$(DESTDIR)/$(libdir)"; fi; elif [ "$(LIBXYZSHSO)" = libxyzsh.dylib ]; then $(INSTALL) -m 755 libxyzsh.$(SO_VERSION).dylib "$(DESTDIR)/$(libdir)"; fi
+ if [ "$(LIBXYZSHSO)" = libxyzsh.so ]; then ln -s -f libxyzsh.so.$(SO_VERSION) "$(DESTDIR)/$(libdir)"/libxyzsh.so.1; elif [ "$(LIBXYZSHSO)" = libxyzsh.dylib ]; then ln -s -f libxyzsh.$(SO_VERSION).dylib "$(DESTDIR)/$(libdir)"/libxyzsh.1.dylib; fi
+ if [ "$(LIBXYZSHSO)" = libxyzsh.so ]; then ln -s -f libxyzsh.so.$(SO_VERSION) "$(DESTDIR)/$(libdir)"/libxyzsh.so; elif [ "$(LIBXYZSHSO)" = libxyzsh.dylib ]; then ln -s -f libxyzsh.$(SO_VERSION).dylib "$(DESTDIR)/$(libdir)"/libxyzsh.dylib; fi
+
+@@ -130,7 +130,7 @@ normal-install:
+ $(INSTALL) -m 644 README.ja "$(docdir)"
+ $(INSTALL) -m 644 CHANGELOG "$(docdir)"
+ rm -f $(bindir)/xyzsh
+- if echo $(CFLAGS) | grep -q MDEBUG; then $(INSTALL) -m 755 xyzsh "$(bindir)"; else $(INSTALL) -s -m 755 xyzsh "$(bindir)"; fi;
++ if echo $(CFLAGS) | grep -q MDEBUG; then $(INSTALL) -m 755 xyzsh "$(bindir)"; else $(INSTALL) -m 755 xyzsh "$(bindir)"; fi;
+ $(INSTALL) -m 644 man/man1/xyzsh.1 "$(mandir)/man1"
+ $(INSTALL) -m 644 xyzsh.xyzsh "$(sysconfdir)"
+ $(INSTALL) -m 644 completion.xyzsh "$(sysconfdir)"
+@@ -163,7 +163,7 @@ dest-install:
+ $(INSTALL) -m 644 README "$(DESTDIR)/$(docdir)"
+ $(INSTALL) -m 644 CHANGELOG "$(DESTDIR)/$(docdir)"
+ rm -f "$(DESTDIR)/$(bindir)/xyzsh"
+- if echo $(CFLAGS) | grep -q MDEBUG; then $(INSTALL) -m 755 xyzsh "$(DESTDIR)/$(bindir)"; else $(INSTALL) -s -m 755 xyzsh "$(DESTDIR)/$(bindir)"; fi;
++ if echo $(CFLAGS) | grep -q MDEBUG; then $(INSTALL) -m 755 xyzsh "$(DESTDIR)/$(bindir)"; else $(INSTALL) -m 755 xyzsh "$(DESTDIR)/$(bindir)"; fi;
+ $(INSTALL) -m 644 man/man1/xyzsh.1 "$(DESTDIR)/$(mandir)/man1"
+ $(INSTALL) -m 644 xyzsh.xyzsh "$(DESTDIR)/$(sysconfdir)"
+ $(INSTALL) -m 644 completion.xyzsh "$(DESTDIR)/$(sysconfdir)"
diff --git a/app-shells/xyzsh/files/xyzsh-1.3.9-tinfo.patch b/app-shells/xyzsh/files/xyzsh-1.3.9-tinfo.patch
new file mode 100644
index 0000000..f3a2a72
--- /dev/null
+++ b/app-shells/xyzsh/files/xyzsh-1.3.9-tinfo.patch
@@ -0,0 +1,12 @@
+diff --git a/configure.in b/configure.in
+index 3cfd494..c51d593 100644
+--- a/configure.in
++++ b/configure.in
+@@ -217,6 +217,7 @@ AC_HAVE_LIBRARY(readline, [ LIBS="$LIBS -lreadline" ], [ exit ])
+ #####################################################################
+ AC_CHECK_HEADER(ncurses.h, [NCURSES_OK=1; AC_DEFINE(HAVE_NCURSES_H, 1)])
+ AC_CHECK_HEADER(ncurses/ncurses.h, [NCURSES_OK=1; AC_DEFINE(HAVE_NCURSES_NCURSES_H, 1)])
++PKG_CHECK_MODULES(NCURSES,ncurses,[ LIBS="$LIBS $NCURSES_LIBS"; NCURSES_OK2=1])
+ AC_HAVE_LIBRARY(cursesw, [ LIBS="$LIBS -lcursesw"; NCURSES_OK2=1 ])
+ AC_HAVE_LIBRARY(ncursesw, [ LIBS="$LIBS -lncursesw"; NCURSES_OK2=1 ])
+
diff --git a/app-shells/xyzsh/metadata.xml b/app-shells/xyzsh/metadata.xml
new file mode 100644
index 0000000..b32ed98
--- /dev/null
+++ b/app-shells/xyzsh/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>naota@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-shells/xyzsh/xyzsh-1.3.9.ebuild b/app-shells/xyzsh/xyzsh-1.3.9.ebuild
new file mode 100644
index 0000000..5b6f58a
--- /dev/null
+++ b/app-shells/xyzsh/xyzsh-1.3.9.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit autotools-utils
+
+DESCRIPTION="xyzsh shell script language"
+HOMEPAGE="http://xyzsh.sourceforge.jp/"
+SRC_URI="mirror://sourceforge.jp/xyzsh/58225/${P}.tgz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="migemo"
+
+DEPEND="dev-libs/oniguruma
+ migemo? ( app-text/cmigemo )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-soname.patch
+ "${FILESDIR}"/${P}-cflags.patch
+ "${FILESDIR}"/${P}-ldflags.patch
+ "${FILESDIR}"/${P}-strip.patch
+ "${FILESDIR}"/${P}-make.patch
+ "${FILESDIR}"/${P}-gcc.patch
+ "${FILESDIR}"/${P}-libdl.patch
+ "${FILESDIR}"/${P}-tinfo.patch
+ "${FILESDIR}"/${P}-configure.patch
+)
+AUTOTOOLS_IN_SOURCE_BUILD=1
+AUTOTOOLS_AUTORECONF=1
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable migemo)
+ )
+ autotools-utils_src_configure
+}