diff options
author | ormorph <roma251078@mail.ru> | 2021-11-20 21:49:02 +0300 |
---|---|---|
committer | ormorph <roma251078@mail.ru> | 2021-11-23 00:17:39 +0300 |
commit | 984f9d117bac955d7ebdd91627ee63c69c464052 (patch) | |
tree | bb58ee4be7ec57ce4a21d630863bb45a3d200bc8 | |
parent | f3e4414f4c102bc10967db988eab64dad18371a6 (diff) | |
download | tde-packaging-gentoo-984f9d117bac955d7ebdd91627ee63c69c464052.tar.gz tde-packaging-gentoo-984f9d117bac955d7ebdd91627ee63c69c464052.zip |
Added fixes for tqt
Signed-off-by: ormorph <roma251078@mail.ru>
-rw-r--r-- | dev-tqt/tqt/tqt-14.0.11.ebuild | 21 | ||||
-rw-r--r-- | dev-tqt/tqt/tqt-9999.ebuild | 15 |
2 files changed, 29 insertions, 7 deletions
diff --git a/dev-tqt/tqt/tqt-14.0.11.ebuild b/dev-tqt/tqt/tqt-14.0.11.ebuild index e3dd35d9..37903dbb 100644 --- a/dev-tqt/tqt/tqt-14.0.11.ebuild +++ b/dev-tqt/tqt/tqt-14.0.11.ebuild @@ -77,7 +77,7 @@ pkg_setup() { ewarn fi - export TQTDIR="${S}" + export QTDIR="${S}" CXX=$(tc-getCXX) if [[ ${CXX/g++/} != ${CXX} ]]; then @@ -164,7 +164,7 @@ src_prepare() { # Ensuring tqt build with mariadb flag if use mariadb ; then sed -i 's/-lmysqlclient/-lmariadb/' "${S}/configure" || die - sed -i 's/-lmysqlclient/-lmariadb/' "${S}/config.tests/unix/checkavail" || dei + sed -i 's/-lmysqlclient/-lmariadb/' "${S}/config.tests/unix/checkavail" || die sed -i 's/-lmysqlclient/-lmariadb/' "${S}/src/sql/qt_sql.pri" || die sed -i 's/-lmysqlclient/-lmariadb/' "${S}/plugins/src/sqldrivers/mysql/mysql.pro" || die fi @@ -201,8 +201,13 @@ src_configure() { use debug && myconf+=" -debug" || myconf+=" -release -no-g++-exceptions -no-exceptions" - use mysql && myconf+=" -plugin-sql-mysql -I/usr/include/mysql -L/usr/$(get_libdir)/mysql" || myconf+=" -no-sql-mysql" - use mariadb && myconf+=" -plugin-sql-mysql -I/usr/include/mariadb -L/usr/$(get_libdir)/mariadb" || myconf+=" -no-sql-mysql" + if use mysql ; then + myconf+=" -plugin-sql-mysql -I/usr/include/mysql -L/usr/$(get_libdir)/mysql" + elif use mariadb ; then + myconf+=" -plugin-sql-mysql -I/usr/include/mariadb -L/usr/$(get_libdir)/mariadb" + else + myconf+=" -no-sql-mysql" + fi use postgres && myconf+=" -plugin-sql-psql -I/usr/include/postgresql/server -I/usr/include/postgresql/pgsql -I/usr/include/postgresql/pgsql/server" || myconf+=" -no-sql-psql" use firebird && myconf+=" -plugin-sql-ibase -I/opt/firebird/include" || myconf+=" -no-sql-ibase" use sqlite && myconf+=" -plugin-sql-sqlite -plugin-sql-sqlite3" || myconf+=" -no-sql-sqlite -no-sql-sqlite3" @@ -246,7 +251,13 @@ src_install() { # Fix qmake.conf files find "${D}${TQTBASE}/mkspecs" -name qmake.conf | xargs \ - sed -i -e "s:\$(TQTDIR):${TQTBASE}:" || die + sed -i -e "s:\$(QTDIR):${TQTBASE}:" || die + find "${D}${TQTBASE}/mkspecs" -name qmake.conf | while read file + do + if ! grep CONFIG "${file}" | grep -q thread ; then + sed "s/link_prl/link_prl thread/" -i "${file}" || die + fi + done # Fix pkgconfig location dodir /usr/$(get_libdir) diff --git a/dev-tqt/tqt/tqt-9999.ebuild b/dev-tqt/tqt/tqt-9999.ebuild index 8cc7a769..964fb8e3 100644 --- a/dev-tqt/tqt/tqt-9999.ebuild +++ b/dev-tqt/tqt/tqt-9999.ebuild @@ -200,8 +200,13 @@ src_configure() { use debug && myconf+=" -debug" || myconf+=" -release -no-g++-exceptions -no-exceptions" - use mysql && myconf+=" -plugin-sql-mysql -I/usr/include/mysql -L/usr/$(get_libdir)/mysql" || myconf+=" -no-sql-mysql" - use mariadb && myconf+=" -plugin-sql-mysql -I/usr/include/mariadb -L/usr/$(get_libdir)/mariadb" || myconf+=" -no-sql-mysql" + if use mysql ; then + myconf+=" -plugin-sql-mysql -I/usr/include/mysql -L/usr/$(get_libdir)/mysql" + elif use mariadb ; then + myconf+=" -plugin-sql-mysql -I/usr/include/mariadb -L/usr/$(get_libdir)/mariadb" + else + myconf+=" -no-sql-mysql" + fi use postgres && myconf+=" -plugin-sql-psql -I/usr/include/postgresql/server -I/usr/include/postgresql/pgsql -I/usr/include/postgresql/pgsql/server" || myconf+=" -no-sql-psql" use firebird && myconf+=" -plugin-sql-ibase -I/opt/firebird/include" || myconf+=" -no-sql-ibase" use sqlite && myconf+=" -plugin-sql-sqlite -plugin-sql-sqlite3" || myconf+=" -no-sql-sqlite -no-sql-sqlite3" @@ -246,6 +251,12 @@ src_install() { # Fix qmake.conf files find "${D}${TQTBASE}/mkspecs" -name qmake.conf | xargs \ sed -i -e "s:\$(TQTDIR):${TQTBASE}:" || die + find "${D}${TQTBASE}/mkspecs" -name qmake.conf | while read file + do + if ! grep CONFIG "${file}" | grep -q thread ; then + sed "s/link_prl/link_prl thread/" -i "${file}" || die + fi + done # Fix pkgconfig location dodir /usr/$(get_libdir) |