summaryrefslogtreecommitdiff
path: root/kde-misc/kio-locate
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /kde-misc/kio-locate
reinit the tree, so we can have metadata
Diffstat (limited to 'kde-misc/kio-locate')
-rw-r--r--kde-misc/kio-locate/Manifest7
-rw-r--r--kde-misc/kio-locate/files/kio-locate-0.5.3-gcc-4.7.patch11
-rw-r--r--kde-misc/kio-locate/files/kio-locate-0.5.3-kf5port.patch102
-rw-r--r--kde-misc/kio-locate/kio-locate-0.5.3-r1.ebuild34
-rw-r--r--kde-misc/kio-locate/metadata.xml8
5 files changed, 162 insertions, 0 deletions
diff --git a/kde-misc/kio-locate/Manifest b/kde-misc/kio-locate/Manifest
new file mode 100644
index 000000000000..6558d6bca283
--- /dev/null
+++ b/kde-misc/kio-locate/Manifest
@@ -0,0 +1,7 @@
+AUX kio-locate-0.5.3-gcc-4.7.patch 178 SHA256 189c97803d76f1357123a29d2a4d5798edcce56e9ce4107fb6f5bca82f80ec1f SHA512 a891bbd12b42eadc95403a5486415d52dd191cfb41c98ccca2a9539ab546551d2bba6e02b98c497f4bcf119ea3ed7b5a26c2c44be3bc0c2b0ade6a2619e9d71b WHIRLPOOL 8c3b786dab8e49bcd0a7cfbd7a5a656121af5dc9071c13528e6aa41338396045a053d1c42b0683e233aed6176082296ae83cc978f28b22c71666337d611c0732
+AUX kio-locate-0.5.3-kf5port.patch 3459 SHA256 0441861be3e9cc95b90e7f3e9755b8e274d4434a58705fc3c634caac3321bf52 SHA512 54731f5945a7cd48114981554a1d0a2a9c2717519399798b28646e6387317bfa2ee8e3aad791b696ea8cef67563500e2117a7f0f4ef11ab165bace3c6844e302 WHIRLPOOL 0d1786d9e596674b0dc77be773a5c720cabb3652d314e1193b0d0645d42bfc0cea73e4ec733e3f4d5d78111384abb97adf79eda5b27c2b4d496561da384c2d25
+DIST 120965-kio-locate-0.5.3.tar.gz 95081 SHA256 25aeac9899f7f88d9e2201f53cfb3be6da9a467b73c45a969c5132537a90740b SHA512 04d80e65fa33b59081c71858efca97c7c53ad91fede6882daa207c6b7b4bc19c9b28056cc701eee5b719dd5cce8263e8d13f6bbf285934640eb2aa8cca676c36 WHIRLPOOL f37a2716a35be8fa759299cdbe70c0e198e23502c0b062a4bfca3dfc1f2acd9c6008dd6f7bb90a30a937aab1690017ab30fff3b8b85bee81f5fe201dc6e08910
+EBUILD kio-locate-0.5.3-r1.ebuild 832 SHA256 369731139696bef06163fd17213ae88e8af55bc23b60adaf505c5528fcb19522 SHA512 9eebf6bebac7db1b78558bbfd55ffb7513f9114109893a6a4068801195c9f72e81bbdca58c07b405dec5468e3b497e162eaea97531966dfd8c11c40fb0382eff WHIRLPOOL 4d6509d86b9aaae99405d7136c3e2cf8453d0b21900ed15c4a66e3b9c26ad2789dbf972ec0883c8e00fde152622dd19a16ffbe5e9df8c0efba3928a1150c760c
+MISC ChangeLog 2477 SHA256 8b9152a2f7b00546fb11c05d7cceeb8f30ff64b2f3bf3ef8c8d2459a32b9fe07 SHA512 c6e195eded84c72c792685097e02443b8080f2a169b44322690f0b147744f2d95cd67e5d4614365dd1f6d1d7590a9f49883a1f1f48477d4b43dad64779df159b WHIRLPOOL 2b21a551f4f257e16e0ed6a7330960b7ebe18fe9c3842cf4e227d611719c4f399d0e5141052792744901a97409627da4424ac400f3b2fb8d45f704a3fb3c8948
+MISC ChangeLog-2015 1139 SHA256 d17999ccad8dbc713d13fd39855daf7b71f45f84e428a80ebbb13720e2118c86 SHA512 7202fd7467a2080f5b669cc9ea3f7c26620c8ea3cf2a131fbe6a902177c9119c293b042559f0708940dfbf6e8f2b36ec26a88b6f62b091d8edae1fddae8c2509 WHIRLPOOL de53350fb39d9812814b94d3380fd8edef70670d6ff44b9d1a30fe83fdc9d1b6e2ca5a815c6d77378eeac9978a9bf5131eba18ef480d3fdc8b4a91981e865e9d
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/kde-misc/kio-locate/files/kio-locate-0.5.3-gcc-4.7.patch b/kde-misc/kio-locate/files/kio-locate-0.5.3-gcc-4.7.patch
new file mode 100644
index 000000000000..4ce83264d69a
--- /dev/null
+++ b/kde-misc/kio-locate/files/kio-locate-0.5.3-gcc-4.7.patch
@@ -0,0 +1,11 @@
+--- a/locater.h
++++ b/locater.h
+@@ -31,6 +31,8 @@
+ #ifndef LOCATER_H
+ #define LOCATER_H
+
++#include <unistd.h>
++
+ #include <QObject>
+ #include <QStringList>
+ #include <KProcess>
diff --git a/kde-misc/kio-locate/files/kio-locate-0.5.3-kf5port.patch b/kde-misc/kio-locate/files/kio-locate-0.5.3-kf5port.patch
new file mode 100644
index 000000000000..986e8c6b0ee2
--- /dev/null
+++ b/kde-misc/kio-locate/files/kio-locate-0.5.3-kf5port.patch
@@ -0,0 +1,102 @@
+diff -Naur a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt 2010-03-07 02:38:40.000000000 +0800
++++ b/CMakeLists.txt 2015-10-19 19:28:48.185748034 +0800
+@@ -1,31 +1,38 @@
+ set(KDE_MIN_VERSION "4.4.0")
+-find_package(KDE4 4.4.0 REQUIRED)
+-include (KDE4Defaults)
++
++find_package(ECM 0.0.11 REQUIRED NO_MODULE)
++set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
++
++include(KDEInstallDirs)
++include(KDECMakeSettings)
++include(KDECompilerSettings)
++include(FeatureSummary)
++
++find_package(Qt5 REQUIRED COMPONENTS Widgets)
++find_package(KF5 REQUIRED COMPONENTS KDELibs4Support) #CoreAddons Solid
+
+ add_definitions(-DKDE_DEFAULT_DEBUG_AREA=7199)
+
+-include_directories( ${KDE4_INCLUDES} )
+-include_directories( ${KDE4_KIO_INCLUDES} )
+
+-macro_optional_add_subdirectory(doc)
+-macro_optional_add_subdirectory(po)
++add_subdirectory(doc)
++add_subdirectory(po)
+
+ set(kio_locate_PART_SRCS
+ pattern.cpp
+ kio_locate.cpp
+ locater.cpp)
+
+-kde4_add_ui_files(kio_locate_PART_SRCS
++qt5_wrap_ui(kio_locate_PART_SRCS
+ klocateconfigfilterwidget.ui
+ klocateconfiglocatewidget.ui
+ klocateconfigwidget.ui)
+
+-kde4_add_kcfg_files(kio_locate_PART_SRCS klocateconfig.kcfgc)
++kconfig_add_kcfg_files(kio_locate_PART_SRCS klocateconfig.kcfgc)
+
+-kde4_add_plugin(kio_locate ${kio_locate_PART_SRCS} ${kio_locate_PART_RCCS})
++add_library(kio_locate MODULE ${kio_locate_PART_SRCS} ${kio_locate_PART_RCCS})
+
+
+-target_link_libraries(kio_locate ${KDE4_KDE3SUPPORT_LIBS})
++target_link_libraries(kio_locate KF5::KDELibs4Support KF5::KIOCore)
+
+ install(TARGETS kio_locate DESTINATION ${PLUGIN_INSTALL_DIR} )
+
+diff -Naur a/doc/CMakeLists.txt b/doc/CMakeLists.txt
+--- a/doc/CMakeLists.txt 2010-03-12 01:49:04.000000000 +0800
++++ b/doc/CMakeLists.txt 2015-10-19 18:47:14.081029481 +0800
+@@ -1 +1 @@
+-macro_optional_add_subdirectory(en)
++add_subdirectory(en)
+diff -Naur a/kio_locate.cpp b/kio_locate.cpp
+--- a/kio_locate.cpp 2010-03-20 17:05:46.000000000 +0800
++++ b/kio_locate.cpp 2015-10-19 18:49:56.251128472 +0800
+@@ -290,7 +290,7 @@
+ void LocateProtocol::setUrl(const KUrl& url)
+ {
+ if (url.protocol() != "locater") {
+- QString pattern = KUrl::decode_string(url.url());
++ QString pattern = url.toString();
+ pattern = pattern.mid(url.protocol().length() + 1);
+
+ KUrl newUrl;
+@@ -371,7 +371,7 @@
+ /// \todo Is UDS_NAME used for anything in stat? If so we should
+ /// at least strip of the protocol part.
+ UDSEntry entry;
+- entry.insert(KIO::UDSEntry::UDS_NAME, url.decode_string(url.url()));
++ entry.insert(KIO::UDSEntry::UDS_NAME, url.toString());
+ entry.insert(KIO::UDSEntry::UDS_FILE_TYPE, isDir ? S_IFDIR : S_IFREG);
+ statEntry(entry);
+ finished();
+@@ -767,7 +767,7 @@
+
+ KConfigDialog *dialog = new KConfigDialog(0, "settings", KLocateConfig::self());
+ dialog->setFaceType(KPageDialog::List);
+- dialog->setCaption(i18n("Configure - kio-locate"));
++ dialog->setWindowTitle(i18n("Configure - kio-locate"));
+ dialog->setWindowIcon(SmallIcon("edit-find"));
+
+ Ui::KLocateConfigWidget w1;
+diff -Naur a/kio_locate.h b/kio_locate.h
+--- a/kio_locate.h 2010-03-20 17:05:46.000000000 +0800
++++ b/kio_locate.h 2015-10-19 18:51:19.908758859 +0800
+@@ -62,6 +62,10 @@
+ #include "locater.h"
+ #include "pattern.h"
+
++#include <KUrl>
++#include <kicon.h>
++#define KDE_EXPORT __attribute__ ((visibility("default")))
++
+ class QByteArray;
+ class KUrl;
+
diff --git a/kde-misc/kio-locate/kio-locate-0.5.3-r1.ebuild b/kde-misc/kio-locate/kio-locate-0.5.3-r1.ebuild
new file mode 100644
index 000000000000..a67ebf62b82f
--- /dev/null
+++ b/kde-misc/kio-locate/kio-locate-0.5.3-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_HANDBOOK="forceoptional" # not optional until !kdelibs4support
+inherit kde5
+
+DESCRIPTION="Locate KIO slave"
+HOMEPAGE="https://www.linux-apps.com/content/show.php/kio-locate?content=120965"
+SRC_URI="https://dl.opendesktop.org/api/files/download/id/1460972255/120965-${P}.tar.gz"
+# See also: https://github.com/reporter123/kio-locate/commits/master
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+DOCS=( AUTHORS ChangeLog )
+
+PATCHES=(
+ "${FILESDIR}/${P}-gcc-4.7.patch"
+ "${FILESDIR}/${P}-kf5port.patch"
+)
+
+DEPEND="
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kdelibs4support)
+ $(add_frameworks_dep solid)
+ $(add_qt_dep qtwidgets)
+"
+RDEPEND="${DEPEND}
+ !kde-misc/kio-locate:4
+ sys-apps/mlocate
+"
diff --git a/kde-misc/kio-locate/metadata.xml b/kde-misc/kio-locate/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/kde-misc/kio-locate/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>