summaryrefslogtreecommitdiff
path: root/dev-libs/libtecla
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/libtecla
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/libtecla')
-rw-r--r--dev-libs/libtecla/Manifest19
-rw-r--r--dev-libs/libtecla/files/libtecla-1.6.1-LDFLAGS2.patch20
-rw-r--r--dev-libs/libtecla/files/libtecla-1.6.1-install.patch18
-rw-r--r--dev-libs/libtecla/files/libtecla-1.6.1-ldflags.patch27
-rw-r--r--dev-libs/libtecla/files/libtecla-1.6.1-no-strip.patch14
-rw-r--r--dev-libs/libtecla/files/libtecla-1.6.1-parallel_build2.patch36
-rw-r--r--dev-libs/libtecla/files/libtecla-1.6.1-prll-install.patch52
-rw-r--r--dev-libs/libtecla/files/libtecla-1.6.3-ldflags.patch37
-rw-r--r--dev-libs/libtecla/files/libtecla-1.6.3-prll-build.patch9
-rw-r--r--dev-libs/libtecla/files/libtecla-1.6.3-secure-runpath.patch26
-rw-r--r--dev-libs/libtecla/files/libtecla-1.6.3-static-libs.patch25
-rw-r--r--dev-libs/libtecla/libtecla-1.6.1-r2.ebuild44
-rw-r--r--dev-libs/libtecla/libtecla-1.6.2.ebuild44
-rw-r--r--dev-libs/libtecla/libtecla-1.6.3.ebuild47
-rw-r--r--dev-libs/libtecla/metadata.xml18
15 files changed, 436 insertions, 0 deletions
diff --git a/dev-libs/libtecla/Manifest b/dev-libs/libtecla/Manifest
new file mode 100644
index 000000000000..14fc2e5641aa
--- /dev/null
+++ b/dev-libs/libtecla/Manifest
@@ -0,0 +1,19 @@
+AUX libtecla-1.6.1-LDFLAGS2.patch 1857 SHA256 29ae35474cc7eb3b22ff8e6257c97eab52de2108d2b95593639c69e6a5e27de7 SHA512 784dfa77723a9f29bb09dd83aea00d1e24290990d446aad0d88b2184cbc4d4ded2063588c4f6f2cd1a65acbcac4d5817747576e36163da48479bfb33c59182a6 WHIRLPOOL d21b5e67369e4fedbdd3925d2659c59642fae1e71dd8424f0812592feee8adc8db548e681ff66c17bfd3c626e8bc880e652b192562cac4d51b58f1387c746d3f
+AUX libtecla-1.6.1-install.patch 481 SHA256 48df38c829f428ddaae27143fd121e10f304286683b557d5fd7d8fbfab6fc9fe SHA512 971f97e15ee0c63df0023477fe6e3f8bf555115e64d90d1ab78b3a312c5b526feaafe825220ad5eee86fe2c4e8cb61a66eda8d36e413abf06c8e4f9fd9261bfa WHIRLPOOL 06c3c46e5b2eaa3a7ef13ba23fe90b7a9778512522a6492401664516aa3f09927ec14ae245a50a3823dd7e704f6d59b6bc5b9c872100e6a291fa9f49b00d854d
+AUX libtecla-1.6.1-ldflags.patch 1127 SHA256 999ef958384f58e9b604064a461341aff05d22fe09513c67411ac80a25664863 SHA512 e7aec721424e3e55b4bf6a6ec3bc360d43af70e27cad273b7dbc7a5a6b42349d24aa6f32b9d0e5ff9108836bafa6e5fda38733adff038026cd5a2a50d4548c8d WHIRLPOOL f295bd204e8768e73a60c3eb065503634258e03a69fe670bd58e092492b5873489d000b63b91eb030bd506e173f0d528a5ae261042fa103f1ee485f3a7ea3fe4
+AUX libtecla-1.6.1-no-strip.patch 562 SHA256 5d7baafbc6f13abf9dd38839fe7896ece9f7eed63ae81be9d25ba666fe7855b2 SHA512 6ae1258602b7e062a81b41d5170fa0af9540653f30111397507f0ad10beb3cd4c02de3d7775d5f7a493f49db84c2eff2650b9c81dc35bf2da39f8624c247a39a WHIRLPOOL 39a2012028ceae3b2bb80af61825fb6c798efafe2ad20fd65a8263a4b6b2a0aebc1cb8a6a4d96f137e851cccd3f7e376f5800c35135e1d2a71c9e49558707942
+AUX libtecla-1.6.1-parallel_build2.patch 1484 SHA256 799367e7a16fa4264507b1cdbe7aeb9ff4b85bec44d2198580c8fcb9061aa072 SHA512 de7e74aa47ffc827ed3cbca7456b5ece59396df067375d5d2eb81eeaf7b99aad077cc36413290865820cf59d9a736b3bc362eb80ff46f3179ebf5f52f73949c4 WHIRLPOOL 069f5a7cc8c54026e9e586bf740baf6d1ca8ffe441b1c757fde7f2658b769f44c52255c67b71fb65af05a914522da003e754dffff2ce154c214e747c97a32541
+AUX libtecla-1.6.1-prll-install.patch 1309 SHA256 1589b62dcbd97bda7029361dbf844530416dbae195669e14ddf7e18f20667a74 SHA512 263a33d3b16f54ab66542e408c0e9c978b7a2d8c8a44412a2b2adeea332de284a0968e5a76c632baef3f709b74260d1276f5430cb8c2d61fe1c7e84246910ea1 WHIRLPOOL 3264397e425de85062c6d0c9a1509b441cd3156877a0a59ee7b713a4896ec8e6a73b4ba4ab6a326dc736846091b24a5c8d7a85ea192fa74379caca4db90cc53b
+AUX libtecla-1.6.3-ldflags.patch 1794 SHA256 ced2ae5bfcacee3baba0905d8aa07c4a91934cf649aa684b2777a1e5a22fb667 SHA512 cf00a20efb9c071a759ed4c032fe1a74c44082bbe2221d37d67b5893ed56586fc98621130e3e4fbe6974fb1eeb559c1f80e8cf2a923bf625ff0f2dc6ed0cdd17 WHIRLPOOL 4f73dac1a6fa6e22da1dd4ab508352cd7a2dde1c44b379462fc1c86eeaef566de2bfb41a390ff471989f459cb2614348dfdec696ad2eeda796540855db29ec51
+AUX libtecla-1.6.3-prll-build.patch 418 SHA256 1131b2bf6404e8eec387e237e0370ca8c3986a825b4318b4d81e4b0afe6aa5ce SHA512 b769d7db3c40fb91a0eb20088b5a0e1fee2769936a4d19b58806ef933ac14e699e5ca9f9151e8ed7aad6f03174fe43319e1110e9374ec0273dcf49e3dcc5a1f4 WHIRLPOOL 6feb45bd93370188fb37c640ae735bef243dfbfafd0f3334cf2a364c6c1b2428215c72bd27c945c82ea9b2f1dd67f6e8202eed7f8789fefa731a129dcdbc45c7
+AUX libtecla-1.6.3-secure-runpath.patch 1210 SHA256 e9d55327a4866c00323e2c7ac34f7d514a41ac8d6e9146a93125e733a12e944c SHA512 591e2b1bba8d99cee516d32b7974d3108d108bc77db2a4f180eb80ec00618a248e368a4f736fb7a27cadef16992baaf2698f49de1a5e54dd8638bfcb3e17155e WHIRLPOOL 367fb1e10f91e0d328826bda54ed702d40ef56ed5735c23ee7953f5003285c5080f03204c2cae14a5ca346e36f8df5266087e348fb4d6fee8c518f354dea9d86
+AUX libtecla-1.6.3-static-libs.patch 1024 SHA256 99fb99600d2f6ca6f545e7f57d5e7929b4bcd3338a90486a00f369451cd8a7cf SHA512 01483100e837c90cfc604ac6c177f03d8d96ff3972c454d3f720270508356c18be336b77624d6c8c291c12fc1400a9e58531b3b7e12c5afc8aa116c15431e756 WHIRLPOOL 8180c9056ef88f6f0a03078f44f4167f2a05ef8bf2bc737e2bee9627284218793928c2a80fcdfd04952da9ccdd404edf1c8d943928c4d40abe70b299ef434fca
+DIST libtecla-1.6.1.tar.gz 518995 SHA256 21db2947bd1415070e0462673aa9bed04610946e09169fcd63e02557b0d999a1 SHA512 89d550868c99739b5cfd0ddba45f61d9a8fd1454c7044f29db6cced9cd1de83b895409706a8b85024d6c75678469a4b8b39dd184322d01e1ab6b5faf03c90fc7 WHIRLPOOL 409b4c1c62810f69cd2f0d08761e52f22045ee6d936aa4c69b8da99bf66319d3716def4f7411947cfc49eeb17d27178511115f50b09f25356087bfbe45ea87e8
+DIST libtecla-1.6.2.tar.gz 535977 SHA256 8c61db528364f4e88e34e79eb3730adf54e43c594cf12faf712117a6d20eb7b8 SHA512 cabfaa4ac386bceee6cd2887010af0c64b98f545ee5c2d367c3594925985df43525bfb5f028890904c66d0f767fc2cb0585a8500cbb06ffd10b7cd7a6d56adb1 WHIRLPOOL bbc6eb0cc9fa8d28a4b635dd2a40203abf43e578c5953e8a3ee219bed25bc3b5ab1ff50d9ab246f76f0b402f1b0244217c1a17a846783025bc4c0451ce04281b
+DIST libtecla-1.6.3.tar.gz 531499 SHA256 f2757cc55040859fcf8f59a0b7b26e0184a22bece44ed9568a4534a478c1ee1a SHA512 e92da3e52f1e06f731378ea8d4529865526b7816f92c3cd41a24ee8b629453564ec1995cf528928dd0673826cdd88f57e057ec0641f9c00fc9ebb255c725df6b WHIRLPOOL c70937c731152e6f9a45bf08466f9a63de88df5bc75e9119312c0defe440ae7954138f7bc0b26ecdb3d7c26635b0e71b7f9332cb4d8f0f2a077901bb0732d929
+EBUILD libtecla-1.6.1-r2.ebuild 933 SHA256 2878d5b12436788006767e4123fb8db00f9e0fbf6bf900d49be290ab2d93f1a4 SHA512 5307c0e5a7c44596d88015edbf187a9ac249eecd65466c71ddbe0a00d8e1d6a3ee16bd156bd6fef96ebc2b3b6e325d4ccb6a0e0df5f462ce818713425eb132da WHIRLPOOL 4473652189c1b864cd7b2ad5a7092aff95e05bef8e775836b5090cef74ec019663c2a0dabde403bdb00e0a62997ef6f1cc3ece6e7fe819fc577495f1c161d224
+EBUILD libtecla-1.6.2.ebuild 1001 SHA256 58ab897d6995289572125d295fec1f3af2714741e9a620d673b364bcbc008ac4 SHA512 78039eea3d6a4eea419e02c259426b0d928928535698fa662c6a787e4b6994750af0e195fbb16ca544e11d1e30bbbdf51f70af9bcb796bdcb2667ce9f208f666 WHIRLPOOL c8c9f6f426aa6326518f0079c6ae8be938caecf786e810180273cdd06cb8efaa488d68a604b311336d041bc2d733e64e732e7aa63e1e941889f37cc529ad8c79
+EBUILD libtecla-1.6.3.ebuild 1025 SHA256 e7741e8e74a4706926a67560b1079946cb6c59ebe8dde94587c7895d98fbdb1f SHA512 120557678ab72d18bd72c2fd222f32f3b61589320dc76547d877cfb29e12e2859551e10a3d84bd36a255da882640c3f47ae18e7af07f47b780557d93bee0dc84 WHIRLPOOL a3d8cc89c1a8bcd05e41f3c682c99932ffd04b4a23a78bfa305a0777bfa8520bc90d36acc3d9ddc66934df3843c5c522fff01234f8b3e9654a0efe9dcda15dba
+MISC ChangeLog 4008 SHA256 5839a4691587d631b71a1ef42b29a19aa98389ce29eb66981df8953b50fc2268 SHA512 87ee6816cde9b94963070a9bc14645b98707effdbbf59727ad0e443eb127ebce279fa7f5bbee645e645f5c9b9543aa879a7b874767243605b4034ead3314394c WHIRLPOOL fb72c4cb9b0812732d3e42325e838d38773d74e2e822dfa061fb54ca287c7ea4bada55b94d27f10fd25284c106338e915977c5634468294e608c568767e3d3e6
+MISC ChangeLog-2015 4007 SHA256 80897ff9b1cee63bf3f42e8c86282cfbc2ae10cd6c787920638aebbc355de66a SHA512 bc30d4e704e7dbb1b18cb6b932ea9cdb3c09b9b106e0937a3e2179b5a93ce3fda836f0f1508f2d3813f3bf22098363566170c4808295249c35a7e642dcb185a4 WHIRLPOOL bbaa053c6b1e565d3120fedc71724d8e6dccfc9a20790eca49cf01fc39d4856c4c53da26d9ea7fef0f29a546cf7fdd3c5ff6c81dfbf305f0f086c6cb2e284803
+MISC metadata.xml 788 SHA256 f17135677ad2abf5dd5c1ad19f01c1713973e79c3793aff89dbb6943cbaf0ae9 SHA512 322f266080edd045f4476b1394f522d0728a409727ba1ff5c60b76f04f61bf5964be2c244e62e003897e967c18f167b674ea2f80b498601ca11c8404a9cd5ccc WHIRLPOOL 9ae0fa048a434338653580fba9d9584e59633aefb6d5b4d8f1f6093f636009c82d3a4ff98db64cfd59831c8de3bc11ac84c68603326148815e11edef3b100442
diff --git a/dev-libs/libtecla/files/libtecla-1.6.1-LDFLAGS2.patch b/dev-libs/libtecla/files/libtecla-1.6.1-LDFLAGS2.patch
new file mode 100644
index 000000000000..c29d3e04c48e
--- /dev/null
+++ b/dev-libs/libtecla/files/libtecla-1.6.1-LDFLAGS2.patch
@@ -0,0 +1,20 @@
+ Makefile.in | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index e492136..a44371a 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -165,10 +165,10 @@ CFLAGS = $(OPT) $(WARNING_FLAGS) $(DEFINES) @CFLAGS@ @SHARED_CFLAGS@
+ default: $(TARGETS)
+
+ normal:
+- @$(MAKE) -f $(srcdir)/Makefile.rules TARGETS="$(TARGET_LIBS)" SUFFIX="" CFLAGS="$(CFLAGS)" CC="$(CC)" OBJDIR=normal_obj LINK_SHARED='@LINK_SHARED@' SHARED_EXT='@SHARED_EXT@' SHARED_ALT='@SHARED_ALT@' LIBS='$(LIBS)' srcdir='$(srcdir)' LIBDIR='$(LIBDIR)' LN_S='@LN_S@' DEMOS="$(DEMOS)" PROGRAMS='$(PROGRAMS)' RANLIB='$(RANLIB)' LDFLAGS=$(LDFLAGS) CPPFLAGS=$(CPPFLAGS)
++ @$(MAKE) -f $(srcdir)/Makefile.rules TARGETS="$(TARGET_LIBS)" SUFFIX="" CFLAGS="$(CFLAGS)" CC="$(CC)" OBJDIR=normal_obj LINK_SHARED='@LINK_SHARED@' SHARED_EXT='@SHARED_EXT@' SHARED_ALT='@SHARED_ALT@' LIBS='$(LIBS)' srcdir='$(srcdir)' LIBDIR='$(LIBDIR)' LN_S='@LN_S@' DEMOS="$(DEMOS)" PROGRAMS='$(PROGRAMS)' RANLIB='$(RANLIB)' LDFLAGS='$(LDFLAGS)' CPPFLAGS='$(CPPFLAGS)'
+
+ reentrant:
+- @$(MAKE) -f $(srcdir)/Makefile.rules TARGETS="$(TARGET_LIBS)" SUFFIX="_r" CFLAGS="$(CFLAGS) $(DEFINES_R)" CC="$(CC)" OBJDIR=reentrant_obj LINK_SHARED='@LINK_SHARED@' SHARED_EXT='@SHARED_EXT@' SHARED_ALT='@SHARED_ALT@' LIBS='$(LIBS)' srcdir='$(srcdir)' LIBDIR='$(LIBDIR)' LN_S='@LN_S@' DEMOS="$(DEMOS)" PROGRAMS='$(PROGRAMS_R)' RANLIB='$(RANLIB)' LDFLAGS=$(LDFLAGS) CPPFLAGS=$(CPPFLAGS)
++ @$(MAKE) -f $(srcdir)/Makefile.rules TARGETS="$(TARGET_LIBS)" SUFFIX="_r" CFLAGS="$(CFLAGS) $(DEFINES_R)" CC="$(CC)" OBJDIR=reentrant_obj LINK_SHARED='@LINK_SHARED@' SHARED_EXT='@SHARED_EXT@' SHARED_ALT='@SHARED_ALT@' LIBS='$(LIBS)' srcdir='$(srcdir)' LIBDIR='$(LIBDIR)' LN_S='@LN_S@' DEMOS="$(DEMOS)" PROGRAMS='$(PROGRAMS_R)' RANLIB='$(RANLIB)' LDFLAGS='$(LDFLAGS)' CPPFLAGS='$(CPPFLAGS)'
+
+ demos: normal
+
diff --git a/dev-libs/libtecla/files/libtecla-1.6.1-install.patch b/dev-libs/libtecla/files/libtecla-1.6.1-install.patch
new file mode 100644
index 000000000000..999d46c58185
--- /dev/null
+++ b/dev-libs/libtecla/files/libtecla-1.6.1-install.patch
@@ -0,0 +1,18 @@
+diff -Naur libtecla/Makefile.in libtecla.new/Makefile.in
+--- libtecla/Makefile.in 2004-10-31 15:30:57.000000000 -0500
++++ libtecla.new/Makefile.in 2008-06-03 08:59:27.000000000 -0400
+@@ -15,10 +15,10 @@
+
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+-LIBDIR=@libdir@
+-INCDIR=@includedir@
+-MANDIR=@mandir@
+-BINDIR=@bindir@
++LIBDIR=$(DESTDIR)/@libdir@
++INCDIR=$(DESTDIR)/@includedir@
++MANDIR=$(DESTDIR)/@mandir@
++BINDIR=$(DESTDIR)/@bindir@
+
+ # Which C compiler do you want to use?
+
diff --git a/dev-libs/libtecla/files/libtecla-1.6.1-ldflags.patch b/dev-libs/libtecla/files/libtecla-1.6.1-ldflags.patch
new file mode 100644
index 000000000000..423e8113213d
--- /dev/null
+++ b/dev-libs/libtecla/files/libtecla-1.6.1-ldflags.patch
@@ -0,0 +1,27 @@
+# add missing LDFLAGS to build system.
+# the configure script still fails to add LDFLAGS when linking
+# the libtecla shared object but since it calls ld directory
+# LDFLAGS can't be used straight out of the box.
+
+--- libtecla/Makefile.rules
++++ libtecla/Makefile.rules
+@@ -66,7 +66,7 @@
+ $(OBJDIR)/demo3.o -L. -ltecla$(SUFFIX) $(LIBS)
+
+ enhance$(SUFFIX): $(OBJDIR)/enhance.o
+- LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) -o $@ \
++ LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(LDFLAGS) $(CFLAGS) -o $@ \
+ $(OBJDIR)/enhance.o -L. -ltecla$(SUFFIX) $(LIBS)
+
+ #-----------------------------------------------------------------------
+--- libtecla/configure.in
++++ libtecla/configure.in
+@@ -468,7 +468,7 @@
+ VERSION_OPT=''
+ fi
+
+- LINK_SHARED="$LD"' -o $$@ -soname libtecla$$(SUFFIX).so.'${MAJOR_VER}' -shared '$VERSION_OPT' $$(LIB_OBJECTS) $$(LIBS) -lc'
++ LINK_SHARED="$LD"' $$(LFLAGS) -o $$@ -soname libtecla$$(SUFFIX).so.'${MAJOR_VER}' -shared '$VERSION_OPT' $$(LIB_OBJECTS) $$(LIBS) -lc'
+ SHARED_CFLAGS="-fpic"
+
+ dnl Reenable the inclusion of symbols which get undefined when POSIX_C_SOURCE
diff --git a/dev-libs/libtecla/files/libtecla-1.6.1-no-strip.patch b/dev-libs/libtecla/files/libtecla-1.6.1-no-strip.patch
new file mode 100644
index 000000000000..1935c3894f76
--- /dev/null
+++ b/dev-libs/libtecla/files/libtecla-1.6.1-no-strip.patch
@@ -0,0 +1,14 @@
+# prevent build system from stripping files (bug #239877).
+
+diff -Naur libtecla/Makefile.in libtecla.new/Makefile.in
+--- libtecla/Makefile.in 2004-10-31 15:30:57.000000000 -0500
++++ libtecla.new/Makefile.in 2008-10-07 06:17:22.000000000 -0400
+@@ -260,7 +260,7 @@
+ install_bin: $(BINDIR) $(PROGRAMS) $(PROGRAMS_R)
+ progs="$(PROGRAMS) $(PROGRAMS_R)"; \
+ for prog in $$progs; do \
+- $(srcdir)/install-sh -c -m 755 -s $$prog $(BINDIR)/; \
++ $(srcdir)/install-sh -c -m 755 $$prog $(BINDIR)/; \
+ done
+
+ install: install_lib install_inc install_man install_bin
diff --git a/dev-libs/libtecla/files/libtecla-1.6.1-parallel_build2.patch b/dev-libs/libtecla/files/libtecla-1.6.1-parallel_build2.patch
new file mode 100644
index 000000000000..3f85f5fdb854
--- /dev/null
+++ b/dev-libs/libtecla/files/libtecla-1.6.1-parallel_build2.patch
@@ -0,0 +1,36 @@
+ Makefile.rules | 16 ++++++++--------
+ 1 files changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/Makefile.rules b/Makefile.rules
+index 0c2f1d1..a3960b5 100644
+--- a/Makefile.rules
++++ b/Makefile.rules
+@@ -53,20 +53,20 @@ libtecla.map.opt: $(srcdir)/libtecla.map
+
+ demos: $(DEMO_PROGS)
+
+-demo$(SUFFIX): $(OBJDIR)/demo.o
+- LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) -o $@ \
++demo$(SUFFIX): $(OBJDIR)/demo.o libtecla$(SUFFIX)$(SHARED_EXT)
++ LD_RUN_PATH="$(LIBDIR)" $(CC) $(CFLAGS) -o $@ \
+ $(OBJDIR)/demo.o -L. -ltecla$(SUFFIX) $(LIBS)
+
+-demo2$(SUFFIX): $(OBJDIR)/demo2.o
+- LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) -o $@ \
++demo2$(SUFFIX): $(OBJDIR)/demo2.o libtecla$(SUFFIX)$(SHARED_EXT)
++ LD_RUN_PATH="$(LIBDIR)" $(CC) $(CFLAGS) -o $@ \
+ $(OBJDIR)/demo2.o -L. -ltecla$(SUFFIX) $(LIBS)
+
+-demo3$(SUFFIX): $(OBJDIR)/demo3.o
+- LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) -o $@ \
++demo3$(SUFFIX): $(OBJDIR)/demo3.o libtecla$(SUFFIX)$(SHARED_EXT)
++ LD_RUN_PATH="$(LIBDIR)" $(CC) $(CFLAGS) -o $@ \
+ $(OBJDIR)/demo3.o -L. -ltecla$(SUFFIX) $(LIBS)
+
+-enhance$(SUFFIX): $(OBJDIR)/enhance.o
+- LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(LDFLAGS) $(CFLAGS) -o $@ \
++enhance$(SUFFIX): $(OBJDIR)/enhance.o libtecla$(SUFFIX)$(SHARED_EXT)
++ LD_RUN_PATH="$(LIBDIR)" $(CC) $(LDFLAGS) $(CFLAGS) -o $@ \
+ $(OBJDIR)/enhance.o -L. -ltecla$(SUFFIX) $(LIBS)
+
+ #-----------------------------------------------------------------------
diff --git a/dev-libs/libtecla/files/libtecla-1.6.1-prll-install.patch b/dev-libs/libtecla/files/libtecla-1.6.1-prll-install.patch
new file mode 100644
index 000000000000..1815f8571566
--- /dev/null
+++ b/dev-libs/libtecla/files/libtecla-1.6.1-prll-install.patch
@@ -0,0 +1,52 @@
+ Makefile.in | 10 +++++-----
+ 1 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index a44371a..dfd44b0 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -217,7 +217,7 @@ install_inc: $(INCDIR)
+
+ install_man: $(MANDIR) libr_man func_man prog_man misc_man file_man
+
+-libr_man:
++libr_man: $(MANDIR)
+ if test "@MAKE_MAN_PAGES@"_ = "yes"_; then \
+ for template in man/libr/*.in; do \
+ page=`basename "$$template" .in`; \
+@@ -225,7 +225,7 @@ libr_man:
+ done ; \
+ fi
+
+-func_man:
++func_man: $(MANDIR)
+ if test "@MAKE_MAN_PAGES@"_ = "yes"_; then \
+ for template in man/func/*.in; do \
+ page=`basename "$$template" .in`; \
+@@ -233,7 +233,7 @@ func_man:
+ done ; \
+ fi
+
+-prog_man:
++prog_man: $(MANDIR)
+ if test "@MAKE_MAN_PAGES@"_ = "yes"_; then \
+ for template in man/prog/*.in; do \
+ page=`basename "$$template" .in`; \
+@@ -241,7 +241,7 @@ prog_man:
+ done ; \
+ fi
+
+-misc_man:
++misc_man: $(MANDIR)
+ if test "@MAKE_MAN_PAGES@"_ = "yes"_; then \
+ for template in man/misc/*.in; do \
+ page=`basename "$$template" .in`; \
+@@ -249,7 +249,7 @@ misc_man:
+ done ; \
+ fi
+
+-file_man:
++file_man: $(MANDIR)
+ if test "@MAKE_MAN_PAGES@"_ = "yes"_; then \
+ for template in man/file/*.in; do \
+ page=`basename "$$template" .in`; \
diff --git a/dev-libs/libtecla/files/libtecla-1.6.3-ldflags.patch b/dev-libs/libtecla/files/libtecla-1.6.3-ldflags.patch
new file mode 100644
index 000000000000..68c9e947b987
--- /dev/null
+++ b/dev-libs/libtecla/files/libtecla-1.6.3-ldflags.patch
@@ -0,0 +1,37 @@
+--- libtecla/Makefile.rules.orig 2014-11-10 00:36:53.000000000 +0300
++++ libtecla/Makefile.rules 2016-04-13 10:37:36.234418914 +0300
+@@ -54,19 +54,19 @@
+ demos: $(DEMO_PROGS)
+
+ demo$(SUFFIX): $(OBJDIR)/demo.o $(TARGETS)
+- LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) -o $@ \
++ LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \
+ $(OBJDIR)/demo.o -L. -ltecla$(SUFFIX) $(LIBS)
+
+ demo2$(SUFFIX): $(OBJDIR)/demo2.o $(TARGETS)
+- LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) -o $@ \
++ LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \
+ $(OBJDIR)/demo2.o -L. -ltecla$(SUFFIX) $(LIBS)
+
+ demo3$(SUFFIX): $(OBJDIR)/demo3.o $(TARGETS)
+- LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) -o $@ \
++ LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \
+ $(OBJDIR)/demo3.o -L. -ltecla$(SUFFIX) $(LIBS)
+
+ enhance$(SUFFIX): $(OBJDIR)/enhance.o $(TARGETS)
+- LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) -o $@ \
++ LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \
+ $(OBJDIR)/enhance.o -L. -ltecla$(SUFFIX) $(LIBS)
+
+ #-----------------------------------------------------------------------
+--- libtecla/configure.in.orig 2014-11-10 01:15:29.000000000 +0300
++++ libtecla/configure.in 2016-04-13 10:32:25.916263565 +0300
+@@ -490,7 +490,7 @@
+ VERSION_OPT=''
+ fi
+
+- LINK_SHARED="$LD"' -o $$@ -soname libtecla$$(SUFFIX).so.'${MAJOR_VER}' -shared '$VERSION_OPT' $$(LIB_OBJECTS) $$(LIBS) -lc'
++ LINK_SHARED="$LD"' $$(LFLAGS) -o $$@ -soname libtecla$$(SUFFIX).so.'${MAJOR_VER}' -shared '$VERSION_OPT' $$(LIB_OBJECTS) $$(LIBS) -lc'
+ SHARED_CFLAGS="-fpic"
+
+ dnl Reenable the inclusion of symbols which get undefined when POSIX_C_SOURCE
diff --git a/dev-libs/libtecla/files/libtecla-1.6.3-prll-build.patch b/dev-libs/libtecla/files/libtecla-1.6.3-prll-build.patch
new file mode 100644
index 000000000000..89f30a6ea31a
--- /dev/null
+++ b/dev-libs/libtecla/files/libtecla-1.6.3-prll-build.patch
@@ -0,0 +1,9 @@
+--- libtecla/Makefile.rules.orig 2016-04-13 11:13:10.000000000 +0300
++++ libtecla/Makefile.rules 2016-04-13 11:17:45.628234106 +0300
+@@ -165,5 +165,5 @@
+ # Include file dependencies.
+ #-----------------------------------------------------------------------
+
+-$(OBJDIR)/keytab.h: $(srcdir)/keytab.h $(srcdir)/libtecla.h
++$(OBJDIR)/keytab.h: $(srcdir)/keytab.h $(srcdir)/libtecla.h $(OBJDIR)
+ cp $(srcdir)/keytab.h $@
diff --git a/dev-libs/libtecla/files/libtecla-1.6.3-secure-runpath.patch b/dev-libs/libtecla/files/libtecla-1.6.3-secure-runpath.patch
new file mode 100644
index 000000000000..b62104ae1d35
--- /dev/null
+++ b/dev-libs/libtecla/files/libtecla-1.6.3-secure-runpath.patch
@@ -0,0 +1,26 @@
+--- libtecla/Makefile.rules.orig 2014-11-10 00:36:53.000000000 +0300
++++ libtecla/Makefile.rules 2016-04-13 10:37:36.234418914 +0300
+@@ -54,19 +54,19 @@
+ demos: $(DEMO_PROGS)
+
+ demo$(SUFFIX): $(OBJDIR)/demo.o $(TARGETS)
+- LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \
++ LD_RUN_PATH="$(LIBDIR)" $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \
+ $(OBJDIR)/demo.o -L. -ltecla$(SUFFIX) $(LIBS)
+
+ demo2$(SUFFIX): $(OBJDIR)/demo2.o $(TARGETS)
+- LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \
++ LD_RUN_PATH="$(LIBDIR)" $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \
+ $(OBJDIR)/demo2.o -L. -ltecla$(SUFFIX) $(LIBS)
+
+ demo3$(SUFFIX): $(OBJDIR)/demo3.o $(TARGETS)
+- LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \
++ LD_RUN_PATH="$(LIBDIR)" $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \
+ $(OBJDIR)/demo3.o -L. -ltecla$(SUFFIX) $(LIBS)
+
+ enhance$(SUFFIX): $(OBJDIR)/enhance.o $(TARGETS)
+- LD_RUN_PATH="$(LIBDIR):$$LD_RUN_PATH:`pwd`" $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \
++ LD_RUN_PATH="$(LIBDIR)" $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \
+ $(OBJDIR)/enhance.o -L. -ltecla$(SUFFIX) $(LIBS)
+
+ #-----------------------------------------------------------------------
diff --git a/dev-libs/libtecla/files/libtecla-1.6.3-static-libs.patch b/dev-libs/libtecla/files/libtecla-1.6.3-static-libs.patch
new file mode 100644
index 000000000000..b88940e49b8b
--- /dev/null
+++ b/dev-libs/libtecla/files/libtecla-1.6.3-static-libs.patch
@@ -0,0 +1,25 @@
+--- libtecla/configure.in.orig 2016-04-13 11:12:15.000000000 +0300
++++ libtecla/configure.in 2016-04-13 11:43:05.632287268 +0300
+@@ -426,6 +426,9 @@
+ AC_ARG_WITH(file-system, AC_HELP_STRING([--with-file-system], [Does the target have a filesystem (default=yes)]),
+ AC_DEFINE(WITHOUT_FILE_SYSTEM), )
+
++dnl Some users may be not interested in static libs
++AC_ARG_ENABLE([static-libs], AC_HELP_STRING([--enable-static-libs], [Enable static libs if shared libs will be also build (default=yes)]))
++
+ dnl The following bourne shell case statement is where system
+ dnl dependencies can be added. In particular, if your system supports
+ dnl shared library creation, the following switch is the place to
+@@ -571,7 +574,11 @@
+ dnl libraries to the list of libraries to be built.
+
+ if test "$LINK_SHARED"_ != "_"; then
+- TARGET_LIBS="static shared"
++ if test "$enable_static_libs"_ != "_"; then
++ TARGET_LIBS="static shared"
++ else
++ TARGET_LIBS="shared"
++ fi
+ else
+ TARGET_LIBS="static"
+ LINK_SHARED="@:"
diff --git a/dev-libs/libtecla/libtecla-1.6.1-r2.ebuild b/dev-libs/libtecla/libtecla-1.6.1-r2.ebuild
new file mode 100644
index 000000000000..d84b97fb1857
--- /dev/null
+++ b/dev-libs/libtecla/libtecla-1.6.1-r2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit autotools eutils flag-o-matic multilib
+
+DESCRIPTION="Tecla command-line editing library"
+HOMEPAGE="http://www.astro.caltech.edu/~mcs/tecla/"
+SRC_URI="http://www.astro.caltech.edu/~mcs/tecla/${P}.tar.gz"
+
+LICENSE="icu"
+SLOT="0"
+KEYWORDS="amd64 ~arm ppc x86"
+IUSE="static-libs"
+
+DEPEND="sys-libs/ncurses"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/libtecla
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-install.patch \
+ "${FILESDIR}"/${P}-ldflags.patch \
+ "${FILESDIR}"/${P}-no-strip.patch \
+ "${FILESDIR}"/${P}-parallel_build2.patch \
+ "${FILESDIR}"/${P}-LDFLAGS2.patch \
+ "${FILESDIR}"/${P}-prll-install.patch
+ eautoreconf
+}
+
+src_compile() {
+ emake \
+ OPT="" \
+ LDFLAGS="${LDFLAGS}" \
+ LFLAGS="$(raw-ldflags)"
+}
+
+src_install() {
+ default
+ use static-libs || \
+ rm -rvf "${ED}"/usr/$(get_libdir)/*a || die
+}
diff --git a/dev-libs/libtecla/libtecla-1.6.2.ebuild b/dev-libs/libtecla/libtecla-1.6.2.ebuild
new file mode 100644
index 000000000000..23ac353d4c44
--- /dev/null
+++ b/dev-libs/libtecla/libtecla-1.6.2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit autotools eutils flag-o-matic multilib
+
+DESCRIPTION="Tecla command-line editing library"
+HOMEPAGE="http://www.astro.caltech.edu/~mcs/tecla/"
+SRC_URI="http://www.astro.caltech.edu/~mcs/tecla/${P}.tar.gz"
+
+LICENSE="icu"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="static-libs"
+
+DEPEND="sys-libs/ncurses"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/libtecla
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-1.6.1-install.patch \
+ "${FILESDIR}"/${PN}-1.6.1-ldflags.patch \
+ "${FILESDIR}"/${PN}-1.6.1-no-strip.patch \
+ "${FILESDIR}"/${PN}-1.6.1-parallel_build2.patch \
+ "${FILESDIR}"/${PN}-1.6.1-LDFLAGS2.patch \
+ "${FILESDIR}"/${PN}-1.6.1-prll-install.patch
+ eautoreconf
+}
+
+src_compile() {
+ emake \
+ OPT="" \
+ LDFLAGS="${LDFLAGS}" \
+ LFLAGS="$(raw-ldflags)"
+}
+
+src_install() {
+ default
+ use static-libs || \
+ rm -rv "${ED}"/usr/$(get_libdir)/*a || die
+}
diff --git a/dev-libs/libtecla/libtecla-1.6.3.ebuild b/dev-libs/libtecla/libtecla-1.6.3.ebuild
new file mode 100644
index 000000000000..954e62a71a87
--- /dev/null
+++ b/dev-libs/libtecla/libtecla-1.6.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools flag-o-matic
+
+DESCRIPTION="Tecla command-line editing library"
+HOMEPAGE="http://www.astro.caltech.edu/~mcs/tecla/"
+SRC_URI="http://www.astro.caltech.edu/~mcs/tecla/${P}.tar.gz"
+
+LICENSE="icu"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="static-libs"
+
+DEPEND="sys-libs/ncurses:="
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/libtecla
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.6.1-install.patch
+ "${FILESDIR}"/${PN}-1.6.1-no-strip.patch
+ "${FILESDIR}"/${PN}-1.6.3-ldflags.patch
+ "${FILESDIR}"/${PN}-1.6.3-prll-build.patch
+ "${FILESDIR}"/${PN}-1.6.1-prll-install.patch
+ "${FILESDIR}"/${PN}-1.6.3-static-libs.patch
+ "${FILESDIR}"/${PN}-1.6.3-secure-runpath.patch
+)
+
+src_prepare() {
+ default
+ mv configure.in configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable static-libs)
+}
+
+src_compile() {
+ emake \
+ OPT="" \
+ LDFLAGS="${LDFLAGS}" \
+ LFLAGS="$(raw-ldflags)"
+}
diff --git a/dev-libs/libtecla/metadata.xml b/dev-libs/libtecla/metadata.xml
new file mode 100644
index 000000000000..5df44d38c662
--- /dev/null
+++ b/dev-libs/libtecla/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+</maintainer>
+<longdescription lang="en">
+ The tecla library provides UNIX and LINUX programs with interactive
+ command line editing facilities, similar to those of the UNIX tcsh
+ shell. In addition to simple command-line editing, it supports
+ recall of previously entered command lines, TAB completion of file
+ names or other tokens, and in-line wild-card expansion of
+ filenames. The internal functions which perform file-name completion
+ and wild-card expansion are also available externally for optional
+ use by programs.
+</longdescription>
+</pkgmetadata>