diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-db/lib_mysqludf_stem |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-db/lib_mysqludf_stem')
-rw-r--r-- | dev-db/lib_mysqludf_stem/Manifest | 6 | ||||
-rw-r--r-- | dev-db/lib_mysqludf_stem/files/lib_mysqludf_stem-mysql_m4.patch | 71 | ||||
-rw-r--r-- | dev-db/lib_mysqludf_stem/lib_mysqludf_stem-0.9.1.ebuild | 68 | ||||
-rw-r--r-- | dev-db/lib_mysqludf_stem/metadata.xml | 5 |
4 files changed, 150 insertions, 0 deletions
diff --git a/dev-db/lib_mysqludf_stem/Manifest b/dev-db/lib_mysqludf_stem/Manifest new file mode 100644 index 000000000000..37367d087f51 --- /dev/null +++ b/dev-db/lib_mysqludf_stem/Manifest @@ -0,0 +1,6 @@ +AUX lib_mysqludf_stem-mysql_m4.patch 2494 SHA256 3998c45367c04e33460c7e4573415f3cc22953a8bfe5afbfaf41eb469b73fccf SHA512 11c057d563f430fa3fedfb8e1b9d830f2b593004dfca98d4ddf61b8ad4a6f77e67725862469dfc01c2dcabce2e65e64ca735e506344e044feeb51ff82e265c4e WHIRLPOOL aa4d25228b3825fcf8d4dd90887e641da3d80be42797c2f33f29610872f4ac26f2282b71294b921b8a32d6b44522b7de1922d8aedebda32ce07527bc190b6dcc +DIST lib_mysqludf_stem-0.9.1.tar.gz 953171 SHA256 a98394b8275ea91eae0bd34703c0a686c5b8c3df039128b0487db757646d1f37 SHA512 d15736da91dc5a6f2b0289694efeb531337ff6a001d39aafca02c9f165ba5901163855b8f03d13a50c2ab9bee58e7fc03d19e893d086ec0022de9dd6921f93b7 WHIRLPOOL 26c670424a092052d0ce33b25ba094afa67bb9e1fc6609a3467778f498bf15c0dfe59ce54c29f056a0c33785a32ff36b643217f1768acf624f304e5ef0c79f59 +EBUILD lib_mysqludf_stem-0.9.1.ebuild 1641 SHA256 614bac26299a1f78dac411315e3a1d66f614078d679b280c989064d6f4cec577 SHA512 d2b001d5d05e1ed34ce1453b4519c07478312d41924afdc9f427c43135a49e9ef3d5bbe546c8f8206040f496c205cd6e749b5939ee4b7ca77ac9118e4f633483 WHIRLPOOL c9770adcf3414f9a6d4425057422287cc0f3fde5215afe389ad807a6798171ae588ee98b538a503948f4a3c6df9648dab8ea0e3971482b0fa039dcbaa5fce2fa +MISC ChangeLog 2593 SHA256 b115e1b9e7e4ef22469dcefe96a0f8e73537c14ce348a3bdb5d9563eb6c312d9 SHA512 ffb522ab3b403c0342924848ddc33bf8ae261081403038e0c940dd95dc95d2dd10198f20cde9576831d5b249e3df3fd41a2c9ea14be323312fdc51580d8a94a6 WHIRLPOOL 0fd35fc87d38a6c555165da76542ba23203c4a5539e73fc57db1f6eb0116ff92a8acbba6abe30af9a1334c4234ad76161a3453064a9d5dc97160febe07cb149c +MISC ChangeLog-2015 507 SHA256 60bd73afb7da37281da60aae1500865fb28f94244cfb6984da2ef57ce16b1218 SHA512 de61124e0a150d3b56f4036cfa2ff48882f03b6465fdefe00d3c2c38209e708be886bd1cd95dfe55d355d120018850c6f55000f5ba0905d71feb1f9acb7db62d WHIRLPOOL 18eb37cada78e5cd4b274b1402b22bdfd89f7208ed1ff87715d07669a51eadc3a6ded4c82ce246547eaa077e10b12c172dc8752b7fab22b11488033f33cfd4d4 +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/dev-db/lib_mysqludf_stem/files/lib_mysqludf_stem-mysql_m4.patch b/dev-db/lib_mysqludf_stem/files/lib_mysqludf_stem-mysql_m4.patch new file mode 100644 index 000000000000..c12d1f7d39a9 --- /dev/null +++ b/dev-db/lib_mysqludf_stem/files/lib_mysqludf_stem-mysql_m4.patch @@ -0,0 +1,71 @@ +--- config/ax_lib_mysql.m4.orig 2008-05-28 17:31:47.000000000 +0200 ++++ config/ax_lib_mysql.m4 2008-11-26 22:43:48.000000000 +0100 +@@ -87,10 +87,9 @@ + MYSQL_LDFLAGS="`$MYSQL_CONFIG --libs`" + + MYSQL_VERSION=`$MYSQL_CONFIG --version` +- +- if test `$MYSQL_CONFIG | /usr/bin/awk '{if ($1 == "--plugindir") print 1}'` == "1"; then +- MYSQL_PLUGINDIR=`$MYSQL_CONFIG --plugindir` +- fi ++ if $MYSQL_CONFIG --plugindir > /dev/null; then ++ MYSQL_PLUGINDIR=`$MYSQL_CONFIG --plugindir` ++ fi + + AC_DEFINE([HAVE_MYSQL], [1], + [Define to 1 if MySQL libraries are available]) +--- config/ax_mysql_bin.m4.orig 2007-08-15 02:22:37.000000000 +0200 ++++ config/ax_mysql_bin.m4 2008-11-26 22:55:40.000000000 +0100 +@@ -43,35 +43,36 @@ + fi + + if test -z "$withmysqlbin" -o "$withmysqlbin" = "yes"; then +- for i in /usr/bin /usr/local/bin ; do +- if test -f "$i/mysql" ; then +- MYSQL="$i/mysql $MYSQL_ARGS" +- fi +- done ++ MYSQL=`which mysql`; ++ if test -n "$MYSQL"; then MYSQL="$MYSQL $MYSQL_ARGS"; fi + elif test "$withmysqlbin" != "no"; then + MYSQL="$withmysqlbin" + fi + + if test -n "$MYSQL" ; then +- MYSQLBIN_PATH = `dirname "$MYSQL"` ++ MYSQLBIN_PATH=`dirname "$MYSQL"` + fi + + if test -z "$withmysqladmin" -o "$withmysqladmin" = "yes"; then +- for i in "$MYSQLBIN_PATH" /usr/bin /usr/local/bin ; do +- if test -n "$i" -a -f "$i/mysqladmin" ; then +- MYSQLADMIN="$i/mysqladmin $MYSQL_ARGS" +- fi +- done ++ if test -n "$MYSQLBIN_PATH" -a -f "$MYSQLBIN_PATH/mysqladmin"; then ++ MYSQLADMIN="$MYSQLBIN_PATH/mysqladmin"; ++ else ++ MYSQLADMIN=`which mysqladmin`; ++ fi ++ ++ if test -n "$MYSQLADMIN"; then MYSQLADMIN="$MYSQLADMIN $MYSQL_ARGS"; fi + elif test "$withmysqladmin" != "no"; then + MYSQLADMIN="$withmysqladmin" + fi + + if test -z "$withmysqltest" -o "$withmysqltest" = "yes"; then +- for i in "$MYSQLBIN_PATH" /usr/bin /usr/local/bin ; do +- if test -n "$i" -a -f "$i/mysqltest" ; then +- MYSQLTEST="$i/mysqltest $MYSQL_ARGS" +- fi +- done ++ if test -n "$MYSQLBIN_PATH" -a -f "$MYSQLBIN_PATH/mysqltest"; then ++ MYSQLTEST="$MYSQLBIN_PATH/mysqltest"; ++ else ++ MYSQLTEST=`which mysqltest`; ++ fi ++ ++ if test -n "$MYSQLTEST"; then MYSQLTEST="$MYSQLTEST $MYSQL_ARGS"; fi + elif test "$withmysqltest" != "no"; then + MYSQLTEST="$withmysqltest" + fi diff --git a/dev-db/lib_mysqludf_stem/lib_mysqludf_stem-0.9.1.ebuild b/dev-db/lib_mysqludf_stem/lib_mysqludf_stem-0.9.1.ebuild new file mode 100644 index 000000000000..fdfa360a4beb --- /dev/null +++ b/dev-db/lib_mysqludf_stem/lib_mysqludf_stem-0.9.1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils toolchain-funcs autotools + +DESCRIPTION="MySQL UDFs which provides stemming capability for a variety of languages" +HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_stem/" +SRC_URI="http://www.mysqludf.org/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/mysql-5.1" +RDEPEND="${DEPEND}" + +RESTRICT="test" + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + # add AC_PROG_CXX to configure.ac + sed -i -e 's|\(AC_PROG_CC\)|\1\nAC_PROG_CXX|g' configure.ac + + # fix ax_lib_mysql.m4 + ax_mysql_bin.m4 + epatch "${FILESDIR}/${PN}-mysql_m4.patch" + + # fix and clean libstemmer_c + sed -i -e 's|^\(CFLAGS\)=|\1+=-fPIC |g' libstemmer_c/Makefile + rm -f -- libstemmer_c/stemwords libstemmer_c/*.{o,a} libstemmer_c/*/*.o + + edos2unix installdb.sql + eautoreconf +} + +src_configure() { + econf --with-pic --disable-static --libdir="${MYSQL_PLUGINDIR}" +} + +src_install() { + local X + emake DESTDIR="${D}" install + dodoc libstemmer_c/libstemmer/*.txt + [ -f ${PN}.html ] && dohtml ${PN}.html + [ -d doc/html ] && dohtml -r doc/html/. + for X in API AUTHORS ChangeLog NEWS README *installdb.sql; do + [ -s "${X}" ] && dodoc "${X}" + done + + # remove obsolete *.la file + rm -f -- "${D}${MYSQL_PLUGINDIR}"/*.la +} + +pkg_postinst() { + elog + elog "Please have a look at the documentation, how to" + elog "enable/disable the UDF functions of ${PN}." + elog + elog "The documentation is located here:" + elog "/usr/share/doc/${PF}" + elog +} diff --git a/dev-db/lib_mysqludf_stem/metadata.xml b/dev-db/lib_mysqludf_stem/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/dev-db/lib_mysqludf_stem/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> |