diff --git a/astro/kstars/Makefile b/astro/kstars/Makefile index 0483c7d1b4e2..278397196747 100644 --- a/astro/kstars/Makefile +++ b/astro/kstars/Makefile @@ -1,43 +1,43 @@ PORTNAME= kstars DISTVERSION= 3.8.0 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= astro kde MASTER_SITES= KDE/stable/${PORTNAME}/${DISTVERSION}/ MAINTAINER= kde@FreeBSD.org COMMENT= KDE desktop planetarium WWW= https://edu.kde.org/kstars LICENSE= GPLv2 LIB_DEPENDS= libXISF.so:graphics/libxisf \ libcfitsio.so:astro/cfitsio \ libqt5keychain.so:security/qtkeychain@qt5 \ libraw.so:graphics/libraw \ libgsl.so:math/gsl \ libindiclient.so:devel/indi \ libopencv_core.so:graphics/opencv \ libsecret-1.so:security/libsecret \ libnova.so:astro/libnova \ libstellarsolver.so:astro/stellarsolver \ libwcs.so:astro/wcslib BUILD_DEPENDS= xplanet:astro/xplanet RUN_DEPENDS= xplanet:astro/xplanet USES= cmake compiler:c++11-lib desktop-file-utils eigen:3 \ gettext gnome kde:5 localbase:ldflags pkgconfig qt:5 tar:xz xorg USE_GNOME= glib20 USE_KDE= attica auth bookmarks codecs completion config configwidgets\ coreaddons crash dbusaddons guiaddons i18n \ iconthemes init itemviews jobwidgets kio newstuff notifications \ notifyconfig parts plotting service solid texteditor \ widgetsaddons windowsystem xmlgui \ doctools:build ecm:build USE_QT= concurrent core datavis3d dbus declarative gui multimedia \ network opengl printsupport sql svg testlib websockets widgets \ xml \ buildtools:build qmake:build USE_XORG= x11 .include diff --git a/astro/kstars/files/patch-kstars_catalogsdb_sqlstatements.cpp b/astro/kstars/files/patch-kstars_catalogsdb_sqlstatements.cpp new file mode 100644 index 000000000000..bf31c658541f --- /dev/null +++ b/astro/kstars/files/patch-kstars_catalogsdb_sqlstatements.cpp @@ -0,0 +1,11 @@ +--- kstars/catalogsdb/sqlstatements.cpp.orig ++++ kstars/catalogsdb/sqlstatements.cpp +@@ -317,8 +317,8 @@ + const QString _dso_by_name = +- "SELECT %1, name like \"%\" || :name || \"%\" AS in_name, long_name like " +- "\"%\" || :name || \"%\" AS in_lname FROM master WHERE in_name " ++ "SELECT %1, name like '%' || :name || '%' AS in_name, long_name like " ++ "'%' || :name || '%' AS in_lname FROM master WHERE in_name " + "OR in_lname " + "ORDER BY name, long_name, " + "%2 LIMIT :limit";