aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/sortfilterproxymodel/files/sortfilterproxymodel-libdir.patch24
-rw-r--r--dev-libs/sortfilterproxymodel/sortfilterproxymodel-9999.ebuild5
2 files changed, 28 insertions, 1 deletions
diff --git a/dev-libs/sortfilterproxymodel/files/sortfilterproxymodel-libdir.patch b/dev-libs/sortfilterproxymodel/files/sortfilterproxymodel-libdir.patch
new file mode 100644
index 0000000..358b055
--- /dev/null
+++ b/dev-libs/sortfilterproxymodel/files/sortfilterproxymodel-libdir.patch
@@ -0,0 +1,24 @@
+diff --git a/SortFilterProxyModel.pro b/SortFilterProxyModel.pro
+index 57e3175..dea9731 100644
+--- a/SortFilterProxyModel.pro
++++ b/SortFilterProxyModel.pro
+@@ -16,6 +16,10 @@ unix:!mac:isEmpty(PREFIX) {
+ PREFIX = /usr/local
+ }
+
++isEmpty(LIB_DIR){
++ LIB_DIR = $${PREFIX}/lib
++}
++
+ headers.path = $${PREFIX}/include/SortFilterProxyModel
+ headers.files = $$PWD/qqmlsortfilterproxymodel.h
+
+@@ -50,7 +54,7 @@ proxyrole_headers.files = $$PWD/proxyroles/proxyrole.h \
+ $$PWD/proxyroles/regexprole.h \
+ $$PWD/proxyroles/filterrole.h
+
+-target.path = $${PREFIX}/lib
++target.path = $${LIB_DIR}
+
+ QMAKE_PKGCONFIG_NAME = SortFilterProxyModel
+ QMAKE_PKGCONFIG_DESCRIPTION = A nicely exposed QSortFilterProxyModel for QML
diff --git a/dev-libs/sortfilterproxymodel/sortfilterproxymodel-9999.ebuild b/dev-libs/sortfilterproxymodel/sortfilterproxymodel-9999.ebuild
index 0952704..cb6291e 100644
--- a/dev-libs/sortfilterproxymodel/sortfilterproxymodel-9999.ebuild
+++ b/dev-libs/sortfilterproxymodel/sortfilterproxymodel-9999.ebuild
@@ -6,6 +6,8 @@ EAPI=6
DESCRIPTION="A Qt5 library to write cross-platform clients for Matrix"
HOMEPAGE="https://gitlab.com/b0/sortfilterproxymodel"
+PATCHES=( "${FILESDIR}"/sortfilterproxymodel-libdir.patch )
+
inherit eutils qmake-utils
if [[ ${PV} == "9999" ]]; then
@@ -30,7 +32,8 @@ DEPEND="${RDEPEND}
src_configure() {
eqmake5 \
- PREFIX=/usr
+ PREFIX=/usr \
+ LIB_DIR=/usr/$(get_libdir)/
}
src_install() {