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/sqlitestudio |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-db/sqlitestudio')
-rw-r--r-- | dev-db/sqlitestudio/Manifest | 9 | ||||
-rw-r--r-- | dev-db/sqlitestudio/files/sqlitestudio-3.0.6-portable.patch | 11 | ||||
-rw-r--r-- | dev-db/sqlitestudio/files/sqlitestudio-3.0.6-qt5_5-QDataStream.patch | 30 | ||||
-rw-r--r-- | dev-db/sqlitestudio/files/sqlitestudio-3.0.7-paths.patch | 22 | ||||
-rw-r--r-- | dev-db/sqlitestudio/metadata.xml | 15 | ||||
-rw-r--r-- | dev-db/sqlitestudio/sqlitestudio-3.0.7.ebuild | 130 | ||||
-rw-r--r-- | dev-db/sqlitestudio/sqlitestudio-3.1.1.ebuild | 139 |
7 files changed, 356 insertions, 0 deletions
diff --git a/dev-db/sqlitestudio/Manifest b/dev-db/sqlitestudio/Manifest new file mode 100644 index 000000000000..7d1e865235ea --- /dev/null +++ b/dev-db/sqlitestudio/Manifest @@ -0,0 +1,9 @@ +AUX sqlitestudio-3.0.6-portable.patch 313 SHA256 ab117e222d51f5209b94b327860616655f78766f66ae74b46da86632d6a73b07 SHA512 85a6c67488196b182ea3dc4df065ab175c0da5140d892fd9cfc7c2a120a2dc91b89878f66d92d7e9f085676f0c0dfff6adbfe5742868e62b1b47332232447f07 WHIRLPOOL 32b5d8751dc0025aea633d89720d00d7f7b833191e636e1bca3746d01f280d9c77206efc4ecd9f98a00f9d3e543d3c65cfc77e73d863f02085a7ebed6a3fac28 +AUX sqlitestudio-3.0.6-qt5_5-QDataStream.patch 912 SHA256 a413fbe6048a744e3ca0c5813a5a2a5193286f0aed97fe817fef56380b5dffc8 SHA512 217152e6a8cab0ef52de6f7704c1ed7db6f2b3134bd107d49c1c00405922afd0561046123dac53d91827856b6586c8946231643fe369b3775459cd247c46ceaf WHIRLPOOL 32c43b5eb3cd7770a433c13ac57c0601015eee5efff6540a2dfa186578dd0af73c9dd54a6d9be825e8af8d682f02c67b7a35688272bf676717fd751b0b993f38 +AUX sqlitestudio-3.0.7-paths.patch 735 SHA256 b749a65ba7d0ebe5da2a2908d2cb59e6a7b0524733bf3844a97c493f1528f707 SHA512 cbe5e66483fa8fcfde80e62f2061d59af002aa3f616e5674f49049c21d0683b3b0668c1793186dc2757c870ce71566ca38283e4f1d34bdecb903ab2eaabeebe2 WHIRLPOOL ba44177d02b812a018e7b104f6aec9d3ffaec62e9ef82b0e252c0767bdd9074a45ca92b8521a02556d0fe15cb499f027572c78428e2c607c76a5bbcf1d90f5c0 +DIST sqlitestudio-3.0.7.tar.gz 2551341 SHA256 b5ad7ac22a88eacb9404637ca6257934d0b1b59e16a182099bbdb158a7af55aa SHA512 2171fe26754aed2abe24d73e9ccc2ee1abe5e87228096bc5643c5638ad578dc323b810535f41d0206b3d7a7aa75132bfb578972c7945b962dd593543c7da3270 WHIRLPOOL 6078575b9bf6576d76965b2cf0c7a47a3b56488be8a75dd2df00b58cfab9d29e98ca30d21ac0dd47fe9a6fb0243052107b74686d90b12b9b2fbff05bc205736f +DIST sqlitestudio-3.1.1.tar.gz 8610037 SHA256 f757a82466e97137addd70dd5323a1a7ba7cad7841dc138812a2da2799f92c6c SHA512 421247730660e8396f692fd8df9366e6ae834633823004ef3cb7c6f3064e66f420f0517df6a8542b800f7f88dacf2fc646b4224b423ab3994c7d8a083e82e143 WHIRLPOOL d3ce08e65ac53367067fd8cd73997cc1313a2cc9de2d15605b91bf57e729a1249c953c4db7b54901e8d41bb2b80d04184fbf19feaee9077e8a07002de2a61a2e +EBUILD sqlitestudio-3.0.7.ebuild 3332 SHA256 9067d8c07d14d22baca6b89c620d228cbf742270286c787195acf46a837cd734 SHA512 d4560ef7865d0c5356ae23cecec834669e4ad17ab96e020bdd9a5d6dcd493fa038793296376538e5460c22a79df579a6ea90eeb3f1afa1d8cd2550de9d291547 WHIRLPOOL ce43532f7055c1d59b9ee1faae38afee1fa7364d3b78418e35444dbf327b3a2c3ca821aa27c3c07fc6aa2b65809b3ba39f78b9c373017290f5552ad350ffc452 +EBUILD sqlitestudio-3.1.1.ebuild 3499 SHA256 d04e9aeeebce6ac38b723219028fff795bd236d979219311804726f6d3f16e21 SHA512 38ac02906a394f8466064c25069ff979dcc8770cfba780fc083ddd11f0d86982a6f8fa57c439936546ca33ff1653ca48905d4c8ad8d47e2a78aeb84c49454e12 WHIRLPOOL b353d137c20ad03087d87875ee9ee5ddbbde1ef9b533ccf03ef88cfc1d81652ef04dff8e23ab652652c4c7db4e3335b62e2045f54daed03dbe3aa8b96dbd3beb +MISC ChangeLog 1074 SHA256 18875759831ecc3a41a328073f3d68998950b6f5176eabbfdc97bb75919b04b9 SHA512 7a7d46c49f312106b7455225f652281054419b5a50e0cabfcdd45d160e11782b8b9364e226de10b74f63af5552a3edad8a49b1cd081e3289b6e0454fd648007f WHIRLPOOL f12592f3a8e90f236ab09b9863d308f1fb3b5ee792b2db9618b97f4ed524dade9887242412950ade05551ac78e9dbff14e8dc3429ac73fcc6ae0cb8df6fac27b +MISC metadata.xml 427 SHA256 e59ddfb4880fee2e7ab90d0c07a4cddcd8a04dc36d522b0b605ca2e0d0eee441 SHA512 a6948ce576abceb4df085f103e097a720ef5f959c6f4bb79cc1f1d858e43cea625d5af3c5edf47f5e61c0a537368e60abd77ed3fcf39a9526543de315ef125b2 WHIRLPOOL 2f504fbf1dd740bcece03919034ba0e5f83c12bf9cefbabadfaab21fb2173a704ec5605f12c4b17630d9ff6f16b30f003ee9f665ff32cf4c1e6379e8ea5fb789 diff --git a/dev-db/sqlitestudio/files/sqlitestudio-3.0.6-portable.patch b/dev-db/sqlitestudio/files/sqlitestudio-3.0.6-portable.patch new file mode 100644 index 000000000000..558a84231b81 --- /dev/null +++ b/dev-db/sqlitestudio/files/sqlitestudio-3.0.6-portable.patch @@ -0,0 +1,11 @@ +--- a/SQLiteStudio3/sqlitestudio/sqlitestudio.pro 2015-11-24 20:09:29.000000000 +0100 ++++ b/SQLiteStudio3/sqlitestudio/sqlitestudio.pro 2016-01-20 15:04:46.700926391 +0100 +@@ -25,7 +25,7 @@ + + CONFIG += c++11 + QMAKE_CXXFLAGS += -pedantic +-linux|portable { ++portable { + QMAKE_LFLAGS += -Wl,-rpath,./lib + } + diff --git a/dev-db/sqlitestudio/files/sqlitestudio-3.0.6-qt5_5-QDataStream.patch b/dev-db/sqlitestudio/files/sqlitestudio-3.0.6-qt5_5-QDataStream.patch new file mode 100644 index 000000000000..c42160c52f07 --- /dev/null +++ b/dev-db/sqlitestudio/files/sqlitestudio-3.0.6-qt5_5-QDataStream.patch @@ -0,0 +1,30 @@ +--- a/SQLiteStudio3/coreSQLiteStudio/db/db.cpp 2015-05-11 23:22:41.000000000 +0200 ++++ b/SQLiteStudio3/coreSQLiteStudio/db/db.cpp 2016-01-20 02:21:00.350160645 +0100 +@@ -1,6 +1,7 @@ + #include "db.h" + #include <QMetaEnum> + #include <QDebug> ++#include <QDataStream> + + Db::Db() + { +--- a/SQLiteStudio3/coreSQLiteStudio/common/utils.cpp 2015-05-11 23:22:41.000000000 +0200 ++++ b/SQLiteStudio3/coreSQLiteStudio/common/utils.cpp 2016-01-20 01:46:22.113263710 +0100 +@@ -11,6 +11,7 @@ + #include <QDebug> + #include <QRegularExpression> + #include <QDir> ++#include <QDataStream> + + #ifdef Q_OS_LINUX + #include <sys/utsname.h> +--- a/SQLiteStudio3/sqlitestudiocli/cli_config.h 2015-05-11 23:22:40.000000000 +0200 ++++ b/SQLiteStudio3/sqlitestudiocli/cli_config.h 2016-01-20 02:45:11.393819294 +0100 +@@ -2,6 +2,7 @@ + #define CLI_CONFIG_H + + #include "config_builder.h" ++#include <QDataStream> + + namespace CliResultsDisplay + { diff --git a/dev-db/sqlitestudio/files/sqlitestudio-3.0.7-paths.patch b/dev-db/sqlitestudio/files/sqlitestudio-3.0.7-paths.patch new file mode 100644 index 000000000000..59d8c0f187aa --- /dev/null +++ b/dev-db/sqlitestudio/files/sqlitestudio-3.0.7-paths.patch @@ -0,0 +1,22 @@ +--- a/Plugins/DbAndroid/DbAndroid.pro 2015-11-24 20:09:41.000000000 +0100 ++++ a/Plugins/DbAndroid/DbAndroid.pro 2016-01-20 13:39:02.436869035 +0100 +@@ -6,7 +6,7 @@ + + QT += widgets network + +-include($$PWD/../../../sqlitestudio/SQLiteStudio3/plugins.pri) ++include($$PWD/../../SQLiteStudio3/plugins.pri) + + TARGET = DbAndroid + TEMPLATE = lib +--- a/Plugins/ScriptingTcl/ScriptingTcl.pro ++++ b/Plugins/ScriptingTcl/ScriptingTcl.pro +@@ -35,7 +35,7 @@ linux: { + + # Find tclConfig.sh + TCL_CONFIG_DIR = $$system(echo "puts [info library]" | tclsh) +- TCL_CONFIG = $$TCL_CONFIG_DIR/tclConfig.sh ++ TCL_CONFIG = $$TCL_CONFIG_DIR/../tclConfig.sh + message("Looking for $$TCL_CONFIG") + !exists($$TCL_CONFIG) { + # Debian case diff --git a/dev-db/sqlitestudio/metadata.xml b/dev-db/sqlitestudio/metadata.xml new file mode 100644 index 000000000000..0e58a49e7265 --- /dev/null +++ b/dev-db/sqlitestudio/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>reagentoo@gmail.com</email> + <name>Dmitry Baranov</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <use> + <flag name="cli">Build CLI interface</flag> + </use> +</pkgmetadata> diff --git a/dev-db/sqlitestudio/sqlitestudio-3.0.7.ebuild b/dev-db/sqlitestudio/sqlitestudio-3.0.7.ebuild new file mode 100644 index 000000000000..21747b2426f6 --- /dev/null +++ b/dev-db/sqlitestudio/sqlitestudio-3.0.7.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Upstream guide: http://wiki.sqlitestudio.pl/index.php/Compiling_application_from_sources + +EAPI=6 + +inherit qmake-utils fdo-mime kde5-functions + +DESCRIPTION="SQLiteStudio3 is a powerful cross-platform SQLite database manager" +HOMEPAGE="http://sqlitestudio.pl" +LICENSE="GPL-3" +SRC_URI="${HOMEPAGE}/files/sqlitestudio3/complete/tar/${P}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cli cups tcl test" + +RDEPEND=" + dev-db/sqlite:3 + $(add_qt_dep qtcore) + $(add_qt_dep qtgui) + $(add_qt_dep qtnetwork) + $(add_qt_dep qtscript) + $(add_qt_dep qtsvg) + $(add_qt_dep qtwidgets) + $(add_qt_dep qtxml) + $(add_qt_dep designer) + cups? ( $(add_qt_dep qtprintsupport) ) + cli? ( sys-libs/readline:= ) + tcl? ( dev-lang/tcl:= ) +" +DEPEND="${RDEPEND} + $(add_qt_dep qtconcurrent) + >=sys-devel/gcc-4.8:* + test? ( $(add_qt_dep qttest) ) +" + +S="${WORKDIR}" +core_build_dir="${S}/output/build" +core_src_dir="${S}/SQLiteStudio3" +plugins_build_dir="${core_build_dir}/Plugins" +plugins_src_dir="${S}/Plugins" + +src_prepare() { + PATCHES=( + "${FILESDIR}"/${PN}-3.0.6-qt5_5-QDataStream.patch + "${FILESDIR}"/${PN}-3.0.6-portable.patch + "${FILESDIR}"/${PN}-3.0.7-paths.patch + ) + default + + disable_modules() { + [ $# -lt 2 ] && return 0 + local file="$1"; shift + + edos2unix "${file}" + + local regex="" + for m in "$@"; do + regex+="\b${m}\b( \\\\|\$)|" + done + regex="${regex:0:-1}" # last pipe + + elog "Disabling modules: '$*' in '${file#${S}/}'" + sed -i -r -e "/${regex}/d" -- "${file}" || return 1 + } + + ## Core + local disabled_modules=( + $(usex cli '' 'cli') + ) + disable_modules "${core_src_dir}/SQLiteStudio3.pro" "${disabled_modules[@]}" || die + + ## Plugins + local disabled_plugins=( + 'DbSqlite2' + $(usex tcl '' 'ScriptingTcl') + $(usex cups '' 'Printing') + ) + disable_modules "${plugins_src_dir}/Plugins.pro" "${disabled_plugins[@]}" || die +} + +src_configure() { + local qmake_args=( + "LIBDIR=${EROOT}usr/$(get_libdir)" + "BINDIR=${EROOT}usr/bin" + "DEFINES+=PLUGINS_DIR=${EROOT}usr/$(get_libdir)/${PN}" + "DEFINES+=ICONS_DIR=${EROOT}usr/share/${PN}/icons" + "DEFINES+=FORMS_DIR=${EROOT}usr/share/${PN}/forms" + + 'DEFINES+=NO_AUTO_UPDATES' # not strictly needed since 3.0.6, but nevermind + $(usex test 'DEFINES+=tests' '') + ) + + ## Core + mkdir -p "${core_build_dir}" && cd "${core_build_dir}" || die + eqmake5 "${qmake_args[@]}" "${core_src_dir}" + + ## Plugins + mkdir -p "${plugins_build_dir}" && cd "${plugins_build_dir}" || die + eqmake5 "${qmake_args[@]}" "${plugins_src_dir}" +} + +src_compile() { + cd "${core_build_dir}" || die && emake + cd "${plugins_build_dir}" || die && emake +} + +src_install() { + cd "${core_build_dir}" || die && emake INSTALL_ROOT="${ED}" install + cd "${plugins_build_dir}" || die && emake INSTALL_ROOT="${ED}" install + + dodoc "${core_src_dir}/docs/sqlitestudio3_docs.cfg" + doicon -s scalable "${core_src_dir}/guiSQLiteStudio/img/${PN}.svg" + + make_desktop_entry_args=( + "${EROOT}usr/bin/${PN} %F" # exec + 'SQLiteStudio3' # name + "${PN}" # icon + 'Development;Utility' # categories + ) + make_desktop_entry_extras=( 'MimeType=application/x-sqlite3;' ) + make_desktop_entry "${make_desktop_entry_args[@]}" \ + "$( printf '%s\n' "${make_desktop_entry_extras[@]}" )" +} + +pkg_postinst() { + fdo-mime_desktop_database_update +} diff --git a/dev-db/sqlitestudio/sqlitestudio-3.1.1.ebuild b/dev-db/sqlitestudio/sqlitestudio-3.1.1.ebuild new file mode 100644 index 000000000000..5c183c9c63d5 --- /dev/null +++ b/dev-db/sqlitestudio/sqlitestudio-3.1.1.ebuild @@ -0,0 +1,139 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PLOCALES="de es fr it pl pt_BR ru sk zh_CN" + +inherit eutils l10n qmake-utils xdg + +DESCRIPTION="Powerful cross-platform SQLite database manager" +HOMEPAGE="https://sqlitestudio.pl" +SRC_URI="https://sqlitestudio.pl/files/sqlitestudio3/complete/tar/${P}.tar.gz" + +KEYWORDS="~amd64 ~x86" +LICENSE="GPL-3" +SLOT="0" +IUSE="cli cups tcl test" + +RDEPEND=" + dev-db/sqlite:3 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtscript:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + cli? ( sys-libs/readline:* ) + cups? ( dev-qt/qtprintsupport:5 ) + tcl? ( dev-lang/tcl:* ) +" +DEPEND="${RDEPEND} + dev-qt/designer:5 + dev-qt/qtconcurrent:5 + test? ( dev-qt/qttest:5 ) +" + +S="${WORKDIR}" +core_build_dir="${S}/output/build" +plugins_build_dir="${core_build_dir}/Plugins" + +src_prepare() { + xdg_src_prepare + + sed -i -e 's/linux|portable/portable/' \ + SQLiteStudio3/sqlitestudio/sqlitestudio.pro || die + + disable_modules() { + [[ $# -lt 2 ]] && die "not enough arguments" + + local pro="$1"; shift + local modules="${@}" + + sed -r -i \ + -e 's/('${modules// /|}')[[:space:]]*(\\?)/\2/' \ + ${pro} || die + } + + use cli || disable_modules SQLiteStudio3/SQLiteStudio3.pro cli + + local mod_lst=( DbSqlite2 ) + use cups || mod_lst+=( Printing ) + use tcl || mod_lst+=( ScriptingTcl ) + disable_modules Plugins/Plugins.pro ${mod_lst[@]} + + local mylrelease="$(qt5_get_bindir)"/lrelease + local ts_dir_lst=$(find * -type f -name "*.qm" -printf '%h\n' | sort -u) + local ts_pro_lst=$(find * -type f -name "*.pro" -exec grep -l 'TRANSLATIONS' {} \;) + local ts_qrc_lst=$(find * -type f -name "*.qrc" -exec grep -l '\.qm' {} \;) + + # delete all "*.qm" + for ts_dir in ${ts_dir_lst[@]}; do + rm "${ts_dir}"/*.qm || die + done + + prepare_locale() { + for ts_dir in ${ts_dir_lst[@]}; do + local ts=$(find "${ts_dir}" -type f -name "*${1}.ts" || continue) + "${mylrelease}" "${ts}" || die "preparing ${1} locale failed" + done + } + + rm_locale() { + for ts_pro in ${ts_pro_lst[@]}; do + sed -i -r -e 's/[^[:space:]]*'${1}'\.ts//' \ + ${ts_pro} || die + done + + for ts_qrc in ${ts_qrc_lst[@]}; do + sed -i -e '/'${1}'\.qm/d' \ + ${ts_qrc} || die + done + } + + local ts_dir_main="SQLiteStudio3/sqlitestudio/translations" + l10n_find_plocales_changes ${ts_dir_main} "sqlitestudio_" '.ts' + l10n_for_each_locale_do prepare_locale + l10n_for_each_disabled_locale_do rm_locale +} + +src_configure() { + # NOTE: QMAKE_CFLAGS_ISYSTEM option prevents + # build error with tcl use enabled (stdlib.h is missing) + local myqmakeargs=( + "BINDIR=${EPREFIX}/usr/bin" + "LIBDIR=${EPREFIX}/usr/$(get_libdir)" + "QMAKE_CFLAGS_ISYSTEM=\"\"" + $(usex test 'DEFINES+=tests' '') + ) + + ## Core + mkdir -p "${core_build_dir}" && cd "${core_build_dir}" || die + eqmake5 "${myqmakeargs[@]}" "${S}/SQLiteStudio3" + + ## Plugins + mkdir -p "${plugins_build_dir}" && cd "${plugins_build_dir}" || die + eqmake5 "${myqmakeargs[@]}" "${S}/Plugins" +} + +src_compile() { + emake -C "${core_build_dir}" + emake -C "${plugins_build_dir}" +} + +src_install() { + emake -C "${core_build_dir}" INSTALL_ROOT="${D}" install + emake -C "${plugins_build_dir}" INSTALL_ROOT="${D}" install + + doicon -s scalable "SQLiteStudio3/guiSQLiteStudio/img/${PN}.svg" + + local make_desktop_entry_args=( + "${PN} -- %F" + 'SQLiteStudio3' + "${PN}" + 'Development;Database;Utility' + ) + make_desktop_entry "${make_desktop_entry_args[@]}" \ + "$( printf '%s\n' "MimeType=application/x-sqlite3;" )" +} |