From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-db/metakit/Manifest | 7 ++ dev-db/metakit/files/metakit-2.4.9.7-linking.patch | 45 ++++++++++++ dev-db/metakit/files/metakit-2.4.9.7-tcltk86.patch | 70 ++++++++++++++++++ dev-db/metakit/metadata.xml | 5 ++ dev-db/metakit/metakit-2.4.9.7-r2.ebuild | 82 ++++++++++++++++++++++ 5 files changed, 209 insertions(+) create mode 100644 dev-db/metakit/Manifest create mode 100644 dev-db/metakit/files/metakit-2.4.9.7-linking.patch create mode 100644 dev-db/metakit/files/metakit-2.4.9.7-tcltk86.patch create mode 100644 dev-db/metakit/metadata.xml create mode 100644 dev-db/metakit/metakit-2.4.9.7-r2.ebuild (limited to 'dev-db/metakit') diff --git a/dev-db/metakit/Manifest b/dev-db/metakit/Manifest new file mode 100644 index 000000000000..0a92147413ec --- /dev/null +++ b/dev-db/metakit/Manifest @@ -0,0 +1,7 @@ +AUX metakit-2.4.9.7-linking.patch 1802 SHA256 4fe2e50a0901ec599322887a381430cf4a44c71a0e7f85e0541f2a756b6318b3 SHA512 911675e8ed060ba662df4bed55a9357bcbebaecb5bf4abe37218f8030aa057c36ed01a851c6d266d8d8fdb94a81ee78d547d86b99f96f8e81809dc4d94209f37 WHIRLPOOL 9533ecbc25a9f7014490a609ce52c71c7d5ba3c5e2b3890a69b0aba4088f58711a4d6d260d3e23bfa6861729e3f24a17d9bdb02515ccc510488e93c157b1b47e +AUX metakit-2.4.9.7-tcltk86.patch 2449 SHA256 81ce36495df6cfd4d0d212ef5d7423f4576c13cd22c147057357a6dbb81554b6 SHA512 1d17157ea8e384bb9094ab937b1ac6854c5a140feb574fa53adf6fcc0dab4060a0f6da9008509f3d924bc1e0e84d6663778605ca506fdec99af39610f1f509b7 WHIRLPOOL cba2bfac2c9e7003215e16e16aa927770c7dc1b46874d3fce461beca741d500c31a7417b5c1771492cbd8850c2d1ea122d65502b7f35dba3aa36ad502bf7f617 +DIST metakit-2.4.9.7.tar.gz 868310 SHA256 d1ba361d2d8517925cff5c23e8602822da9c8c347a75a15c225ec656ff7ca94d SHA512 94be6ae8ae5f1f24d255a427b0c01eccd2543cd49c5620df7c47f5bf09854ed464a01c52fc8441f7a8e9d5bdc8b966dc77ed34c15cbf9cdfe75a3063572cb8b9 WHIRLPOOL 2736564da532bf50982c9a529fcb50cf95c1e27192bba15ac19606eba98a9c97408ca8888f9ddd38b2a07496e1ee020e2fcd3de77142267b27148cae3ed1a5d9 +EBUILD metakit-2.4.9.7-r2.ebuild 1838 SHA256 ec99090ba0766711cc3d2888a92bad660529ea9903841e327cb7a833ecf34f4e SHA512 eb8b3e0e8305e44c751d46c468bb6719a89f8b5e8b206a80c61c3461437c6b65916167c31d031aaa30cb6cfa9913999dc5b413ca5bc2b069a15022080439ae91 WHIRLPOOL e43a2664c4ca0adb7629e6e99e82209087a017d608430ce1732b207b20731e94dc430494fe0412543a35a4dab4e67faf4de101b7983820d10b2719ac258604ce +MISC ChangeLog 2608 SHA256 4a977f51d9df645a6c279e721253d060035fa33bc50d2ee8d9cc0eb6ac469987 SHA512 2b7f765e0a70b4f3863c86eba2d655644b53e9a71097b29b777a41e1ef6962150489c838d2d95f364ce196ddd462cd3ddf98a62149b72a10c396790cf19ac05e WHIRLPOOL 3da49f3b627a61b72e467bfe9cdfc2bf85da93ad2f92759cfb703fd1a4097c13e8fec4a93588d969dfec0cc36807e15ebcf62825c73492f6aa350a8120945dd5 +MISC ChangeLog-2015 8566 SHA256 ada57566bcce24396fbfb8886cc172ace366298b1bb9f6b4c7d9ab5fbd29e74e SHA512 23bac2ff8f12aee79cab076818c0898652ed1427677d8ad92ada58e79eadd13f9f2140bee019e135896cca508c25351b9d4870b9839fd87985cc9c80d775ec54 WHIRLPOOL 650a5aa31622681a31cdacf5523ef99584d61deba3c3839a8e5c5e69bf67fbfab5c120a8879bb3745719d7cb408de076d6fe8454f3767780d6e74d4719178eda +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/dev-db/metakit/files/metakit-2.4.9.7-linking.patch b/dev-db/metakit/files/metakit-2.4.9.7-linking.patch new file mode 100644 index 000000000000..55453a2d8e4a --- /dev/null +++ b/dev-db/metakit/files/metakit-2.4.9.7-linking.patch @@ -0,0 +1,45 @@ + unix/Makefile.in | 10 +++++----- + 1 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/unix/Makefile.in b/unix/Makefile.in +index bf187ba..763558f 100755 +--- a/unix/Makefile.in ++++ b/unix/Makefile.in +@@ -43,7 +43,7 @@ CXX_FLAGS = @CPPFLAGS@ @CXXFLAGS@ @MK_THREADS@ @SHLIB_CFLAGS@ \ + # (e.g. in Mk4py). This does not affect standard operation, *only* errors. + # Happens in gcc 2.95.3, it has been disabled for now (even though slower). + #CXXFLAGS = -fomit-frame-pointer $(CXX_FLAGS) +-CXXFLAGS = $(CXX_FLAGS) ++CXXFLAGS += -I$(srcdir)/../include + #CXXFLAGS = -Dq4_CHECK $(CXX_FLAGS) + #CXXFLAGS = -Wall -pedantic -Wno-unused $(CXX_FLAGS) + +@@ -134,24 +134,24 @@ libmk4$(LIB_SUFFIX): $(LOBJS) + ranlib $@ + + libmk4$(SHLIB_SUFFIX): $(LOBJS) $(LINK_SPECIAL_FILES) +- $(SHLIB_LD) -o $@ $(LOBJS) $(LINK_SPECIAL_FLAGS) ++ $(SHLIB_LD) $(LDFLAGS) -o $@ $(LOBJS) $(LINK_SPECIAL_FLAGS) + + Mk4tcl$(LIB_SUFFIX): mk4tcl.o mk4too.o $(LOBJS) + ar rcu $@ mk4tcl.o mk4too.o $(LOBJS) + ranlib $@ + + Mk4tcl$(SHLIB_SUFFIX): mk4tcl.o mk4too.o $(LOBJS) $(LINK_SPECIAL_FILES) +- $(SHLIB_LD) -o $@ mk4tcl.o mk4too.o $(LOBJS) $(LINK_SPECIAL_FLAGS) ++ $(SHLIB_LD) $(LDFLAGS) -o $@ mk4tcl.o mk4too.o $(LOBJS) $(LINK_SPECIAL_FLAGS) + + Mk4py$(LIB_SUFFIX): $(PYOBJS) $(LOBJS) + ar cru $@ $(PYOBJS) $(LOBJS) + ranlib $@ + + Mk4py$(SHLIB_SUFFIX): $(PYOBJS) $(LOBJS) $(LINK_SPECIAL_FILES) +- $(SHLIB_LD) -o $@ $(PYOBJS) $(LOBJS) $(LINK_SPECIAL_FLAGS) ++ $(SHLIB_LD) $(LDFLAGS) -o $@ $(PYOBJS) -L. -lmk4 $(LINK_SPECIAL_FLAGS) $(PYTHON_LIB) + + Mk4lua$(SHLIB_SUFFIX): mk4lua.o $(LOBJS) $(LINK_SPECIAL_FILES) +- $(SHLIB_LD) -o $@ mk4lua.o $(LOBJS) $(LINK_SPECIAL_FLAGS) ++ $(SHLIB_LD) $(LDFLAGS) -o $@ mk4lua.o $(LOBJS) $(LINK_SPECIAL_FLAGS) + + demo: $(srcdir)/../demos/demo.cpp libmk4$(LIBEXT) + $(CXX) $(CXX_SWITCHES) -o $@$(EXEEXT) \ diff --git a/dev-db/metakit/files/metakit-2.4.9.7-tcltk86.patch b/dev-db/metakit/files/metakit-2.4.9.7-tcltk86.patch new file mode 100644 index 000000000000..cbf4ce3549f6 --- /dev/null +++ b/dev-db/metakit/files/metakit-2.4.9.7-tcltk86.patch @@ -0,0 +1,70 @@ + tcl/mk4tcl.cpp | 10 +++++++--- + tcl/mk4too.cpp | 6 +++++- + 2 files changed, 12 insertions(+), 4 deletions(-) + +diff --git a/tcl/mk4tcl.cpp b/tcl/mk4tcl.cpp +index 049bf8e..8d2249e 100755 +--- a/tcl/mk4tcl.cpp ++++ b/tcl/mk4tcl.cpp +@@ -28,6 +28,10 @@ + #define MyInitStubs(x) 1 + #endif + ++#if 10 * TCL_MAJOR_VERSION + TCL_MINOR_VERSION < 86 ++#define Tcl_GetErrorLine(interp) (interp)->errorLine ++#endif ++ + // definition of valid property name - alpha numerics, underscore, percent, + // or any extended utf-8 character + #define ISNAME(c) (isalnum((c)) || (c) == '_' || (c) == '%' || (c) & 0x80) +@@ -979,7 +983,7 @@ const c4_Property &AsProperty(Tcl_Obj *objPtr, const c4_View &view_) { + void *tag = (&view_[0])._seq; // horrific hack to get at c4_Sequence pointer + if (objPtr->typePtr != &mkPropertyType || objPtr + ->internalRep.twoPtrValue.ptr1 != tag) { +- Tcl_ObjType *oldTypePtr = objPtr->typePtr; ++ CONST86 Tcl_ObjType *oldTypePtr = objPtr->typePtr; + + char type = 'S'; + +@@ -1083,7 +1087,7 @@ int SetCursorFromAny(Tcl_Interp *interp, Tcl_Obj *objPtr) { + } + + if (objPtr->typePtr != &mkCursorType) { +- Tcl_ObjType *oldTypePtr = objPtr->typePtr; ++ CONST86 Tcl_ObjType *oldTypePtr = objPtr->typePtr; + + const char *string = Tcl_GetStringFromObj(objPtr, 0); + +@@ -2156,7 +2160,7 @@ int MkTcl::LoopCmd() { + _error = TCL_OK; + else if (_error == TCL_ERROR) { + char msg[100]; +- sprintf(msg, "\n (\"mk::loop\" body line %d)", interp->errorLine); ++ sprintf(msg, "\n (\"mk::loop\" body line %d)", Tcl_GetErrorLine(interp)); + Tcl_AddObjErrorInfo(interp, msg, - 1); + } + break; +diff --git a/tcl/mk4too.cpp b/tcl/mk4too.cpp +index 7c845c0..ffcbc4e 100644 +--- a/tcl/mk4too.cpp ++++ b/tcl/mk4too.cpp +@@ -7,6 +7,10 @@ + #include + #include + ++#if 10 * TCL_MAJOR_VERSION + TCL_MINOR_VERSION < 86 ++#define Tcl_GetErrorLine(interp) (interp)->errorLine ++#endif ++ + /////////////////////////////////////////////////////////////////////////////// + // Defined in this file: + +@@ -612,7 +616,7 @@ int MkView::LoopCmd() { + _error = TCL_OK; + else if (_error == TCL_ERROR) { + char msg[100]; +- sprintf(msg, "\n (\"mk::loop\" body line %d)", interp->errorLine); ++ sprintf(msg, "\n (\"mk::loop\" body line %d)", Tcl_GetErrorLine(interp)); + Tcl_AddObjErrorInfo(interp, msg, - 1); + } + break; diff --git a/dev-db/metakit/metadata.xml b/dev-db/metakit/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/dev-db/metakit/metadata.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/dev-db/metakit/metakit-2.4.9.7-r2.ebuild b/dev-db/metakit/metakit-2.4.9.7-r2.ebuild new file mode 100644 index 000000000000..6f734ed0c15c --- /dev/null +++ b/dev-db/metakit/metakit-2.4.9.7-r2.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils flag-o-matic multilib python-single-r1 toolchain-funcs + +DESCRIPTION="Embedded database library" +HOMEPAGE="http://www.equi4.com/metakit/" +SRC_URI="http://www.equi4.com/pub/mk/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="python static tcl" + +DEPEND=" + python? ( ${PYTHON_DEPS} ) + tcl? ( >=dev-lang/tcl-8.6:0= )" +RDEPEND="${DEPEND}" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RESTRICT="test" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-linking.patch \ + "${FILESDIR}"/${P}-tcltk86.patch +} + +src_configure() { + local myconf mycxxflags + use tcl && myconf+=" --with-tcl=${EPREFIX}/usr/include,${EPREFIX}/usr/$(get_libdir)" + use static && myconf+=" --disable-shared" + use static || append-cxxflags -fPIC + + CXXFLAGS="${CXXFLAGS} ${mycxxflags}" unix/configure \ + ${myconf} \ + --host=${CHOST} \ + --prefix="${EPREFIX}/usr" \ + --libdir="${EPREFIX}/usr/$(get_libdir)" \ + --infodir="${EPREFIX}/usr/share/info" \ + --mandir="${EPREFIX}/usr/share/man" +} + +src_compile() { + emake SHLIB_LD="$(tc-getCXX) -shared -Wl,-soname,libmk4.so.2.4" + + if use python; then + emake \ + SHLIB_LD="$(tc-getCXX) -shared" \ + pyincludedir="$(python_get_includedir)" \ + PYTHON_LIB="-l${EPYTHON}" \ + python + fi +} + +src_install () { + default + + mv "${ED}"//usr/$(get_libdir)/libmk4.so{,.2.4} + dosym libmk4.so.2.4 /usr/$(get_libdir)/libmk4.so.2 + dosym libmk4.so.2.4 /usr/$(get_libdir)/libmk4.so + + if use python; then + mkdir -p "${D%/}$(python_get_sitedir)" || die + emake \ + DESTDIR="${D}" \ + pylibdir="$(python_get_sitedir)" \ + install-python + fi + + dohtml Metakit.html + dohtml -a html,gif,png,jpg -r doc/* +} -- cgit v1.2.3