summaryrefslogtreecommitdiffstats
path: root/www-apps/searc
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/searc')
-rw-r--r--www-apps/searc/Manifest1
-rw-r--r--www-apps/searc/metadata.xml23
-rw-r--r--www-apps/searc/searc-0.0.25.ebuild31
3 files changed, 55 insertions, 0 deletions
diff --git a/www-apps/searc/Manifest b/www-apps/searc/Manifest
new file mode 100644
index 0000000..635fe42
--- /dev/null
+++ b/www-apps/searc/Manifest
@@ -0,0 +1 @@
+DIST searc-0.0.25.tar.gz 30875 BLAKE2B d2e0da32c28e9b62d245755bd48f97aadab45f5cddc9cdc0777dda2050cc2cefa3fde7e45c6df6dcfad3459ad3a5efa223301b19aba13d8c36f4dec2faaea4c2 SHA512 cf32b2586a39f0acee39b5fae21333619163cc336b243d4340b2ad64296c03734f90302f372410e33299630af8e3a44f2969fa02cb2bf8d15097e2c4c798affc
diff --git a/www-apps/searc/metadata.xml b/www-apps/searc/metadata.xml
new file mode 100644
index 0000000..1480530
--- /dev/null
+++ b/www-apps/searc/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>anton@sijanec.eu</email>
+ <name>Anton Luka Šijanec</name>
+ </maintainer>
+ <use>
+ <flag name="logmem" lang="en">Store all log messages in memory and make them accessible over HTTP on /logs.html</flag>
+ <flag name="logmem" lang="sl">Hrani vsa dnevniška sporočila v spominu in jih naredi dostopna preko HTTP na /logs.html</flag>
+ <flag name="oldstorage" lang="en">Use old storage O(n) simple linked list for search queries instead of O(log n) binary search tree.</flag>
+ <flag name="oldstorage" lang="sl">Uporabi stari algoritem za shrambo iskalnih zahtev s O(n) kompleksnostjo namesto novega tsearch(3) O(log n) binarnega drevesa</flag>
+ </use>
+ <upstream>
+ <maintainer type="person">
+ <email>anton@sijanec.eu</email>
+ <name>Anton Luka Šijanec</name>
+ </maintainer>
+ <changelog>http://git.sijanec.eu/sijanec/sear.c/raw/branch/master/debian/changelog</changelog>
+ <doc>http://git.sijanec.eu/sijanec/sear.c/raw/branch/master/README.md</doc>
+ <bugs-to>mailto:anton+sear.c-ebuild@sijanec.eu</bugs-to>
+ </upstream>
+</pkgmetadata>
diff --git a/www-apps/searc/searc-0.0.25.ebuild b/www-apps/searc/searc-0.0.25.ebuild
new file mode 100644
index 0000000..3bf3282
--- /dev/null
+++ b/www-apps/searc/searc-0.0.25.ebuild
@@ -0,0 +1,31 @@
+EAPI=8
+
+# max 80 chars
+DESCRIPTION="scraper for search results of popular engines, caches them and creates a HTML UI"
+HOMEPAGE="http://ni.sijanec.eu./sijanec/sear.c"
+SRC_URI="http://ni.sijanec.eu./sijanec/sear.c/snapshot/sear.c-${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE=""
+SLOT="0"
+IUSE="oldstorage logmem"
+
+# vsi moji programi so nestabilni (:
+KEYWORDS="*"
+
+DEPEND="dev-libs/libxml2 net-libs/libmicrohttpd acct-user/searc acct-group/searc"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+# do not use mirrors to download
+RESTRICT="mirror"
+
+src_unpack() {
+ unpack ${A}
+ mv sear.c searc-${PV}
+}
+
+src_compile() {
+ use oldstorage && append-flags "-DSC_OLD_STORAGE"
+ use logmem && append-flags "-DSC_LOGMEM"
+ emake
+}