summaryrefslogtreecommitdiff
path: root/app-misc/sleepyhead
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/sleepyhead')
-rw-r--r--app-misc/sleepyhead/Manifest15
-rw-r--r--app-misc/sleepyhead/files/common_gui.patch12
-rw-r--r--app-misc/sleepyhead/files/gitfix.patch15
-rw-r--r--app-misc/sleepyhead/files/prs1-64fix.patch13
-rw-r--r--app-misc/sleepyhead/files/prs1-code8fix.patch12
-rw-r--r--app-misc/sleepyhead/metadata.xml11
-rw-r--r--app-misc/sleepyhead/sleepyhead-0.9.2.2-r1.ebuild52
-rw-r--r--app-misc/sleepyhead/sleepyhead-0.9.2.2.ebuild49
-rw-r--r--app-misc/sleepyhead/sleepyhead-0.9.3.ebuild50
-rw-r--r--app-misc/sleepyhead/sleepyhead-1.0.0_beta2.ebuild53
-rw-r--r--app-misc/sleepyhead/sleepyhead-9999.ebuild47
11 files changed, 329 insertions, 0 deletions
diff --git a/app-misc/sleepyhead/Manifest b/app-misc/sleepyhead/Manifest
new file mode 100644
index 000000000000..b34bc7656a80
--- /dev/null
+++ b/app-misc/sleepyhead/Manifest
@@ -0,0 +1,15 @@
+AUX common_gui.patch 246 SHA256 a82ebaaa8001590ceff4cf34f39488c2030b1d68cf36a3a27a51cfd19194b062 SHA512 952027395ac82fa3960c5efe9b98acf4a2232380a59fd9d71112ea57d26c94fc9f497e9c1c6e6fd48820f3042b16cc88d9f8b95285e857f1b5580a7e00acf442 WHIRLPOOL b127db8847a463ece5f58658b4c99ec12610274947350187f2d80af0276f5cb732d52dfa2754fa68645b9edb567d2266216749c454dba73bd00f5887ae1d38fd
+AUX gitfix.patch 602 SHA256 37aa5bbf7c6710f4a73ce1c2b51b7262ef7eb872bb035d014678c71d1392a74a SHA512 55ce2c1913dafd333875fd471d6dccbdce2b6eab4350234240b6078ceefb433e0847ab5bd76ca7e07fe567ca8fb8f30ed5f86020d9b9123d6011ab57cf6ff879 WHIRLPOOL 0298c6e10159532a798b4d13b113b420138dd1b96d386b02761e7e11da9f7a73afcbec7313aad0ba0725e2fe03d295837b96cbafdfcda338e364e597b2a69310
+AUX prs1-64fix.patch 497 SHA256 ff6c5ea462f2dfbe1b6d16bdcd6f3639c788830498ebca0718be9b744ba6daf5 SHA512 fb5019d0fa2de29cfd90ca58f57a1208487850479f3ed7252527a575cfb81f1c3f88932210d421b54fadef70d837bbce17cbd171847020b5b07cfc1b36973de2 WHIRLPOOL cad6ad26bcaeaca232fe204ca6266433ecf8461e24fa8b1e5700cffcd51b2e2e105f04a99eba1c4c04600e5e0a6dc30ddec0ac4514d039931324a85a095dd64f
+AUX prs1-code8fix.patch 570 SHA256 9e31538b50afef77feed1112330d11274536a38ea6bd4f8bd0814a08c3cf0f98 SHA512 5226c9ee67cf7bf130cf36b5b9b5db03ba75d571b408614d554ff9d85da98a2b4a67161d5d5cad2e02e2c042ef1eda9927717debaa2701358b5c3c2f4474f244 WHIRLPOOL 97c1e3175e7dea3b8f5f2923beec08284557dd0cf39a3e299cebb658f97b6f878bce559584de3cbaf49cda0955a785ce04f3f7b9c4d6a8741d166ee57085ab9a
+DIST sleepyhead-0.9.2.2.tgz 1399077 SHA256 49bcc7cf2b8351026a1f30b44d71a8500b9c74c6f6ac1aeeb14ca3b039ee7123 SHA512 bb6219c8575b8723b2db063d9a40b164d1aa50223b63468457c85b18895aefc74835d55bcd1f7d0e48e942531bd77041a749e44d870189d9ba011ad85d13c7fa WHIRLPOOL 3e1955aa2d1ab96da8a4f091f15538ba2bd091d935a2b9acaa012c7aadf304e7dcf5cf0f3284e0ed4c29d11f39420f236144adcaec0646f0f4d879c375a822c8
+DIST sleepyhead-0.9.3.tgz 1804053 SHA256 b807f12c3f767037dd2e5bfdeb1f353e425ad537509be4cf3918ec61cf2efea2 SHA512 e50476e9b64ce056d33a55798a86b26fef6db4e8c6058e4e6c5c547e15acb745ea5d79bf3978713583da943626b2395894ed8109fa30a55ca15fa53ff29a2ac9 WHIRLPOOL 5759d97c0309a5c9f312ae9fde85531bc718da4fffe375d6f08b06dd2f34877e935339fa56634f482a3bfc66877c0ad0f4577832f3f89a64ec24dc18b880b826
+DIST sleepyhead-1.0.0_beta2.tar.bz2 3404013 SHA256 db6152a47df69c5cf85a75171d64c2208a953d838ea5c974c2399e8d7cc94353 SHA512 147a853bd77e6277b70d5d70f9b82f46c3f6328283c30b38d77e698146519367c9fa02f8fb21c687237657ceb78d7bc9ee07e4e8ccdbe41652ddd8dc55049eca WHIRLPOOL f07f7dc916e93e213998daecdb469b838e10c642ce87bbdba415e89eccbdab3392b5cbd8414e391270ccd8687b2cdc1c7777ebc8e098ec8eac43ab5d6702a2cc
+EBUILD sleepyhead-0.9.2.2-r1.ebuild 1178 SHA256 f30821ac670f7564be35ed19c7d9edcad87fafb5b44f746c9ccc6ebf5c2e6386 SHA512 0417d552f27802ba31aaeda31c6d41c0f2980621381b47109f1e3d06bc76bf8166abaf4b159f551db2d50c60fb958c90d09b580e5a567fb705b15c613330cac4 WHIRLPOOL c74fb31e95ee3b7d51271af34c82323f4e3fb88c14bc41393b5b55bc573c670edc790d10705b7b0ef2d64de2be0327df48367e10085115ff63bb1ed8e1ece341
+EBUILD sleepyhead-0.9.2.2.ebuild 1096 SHA256 11bed55ec21d179ea7ac894b4976b4875d706d6ab42886a7f55af92048f48c73 SHA512 e262848e0e3bbd893d02644e0e935bcf767ef17992d272d773db73c7ac17725247dd7c61ce5f0a4a7d17f987b6cad174ae1e64c19a2f85465447d7f44cf5d44d WHIRLPOOL 59c3796e8ebb93d3b675aa381d4d3bef3d872db083071b1985f6267226f8a6e0f0c1d25ffb8e8fe4863bddbdfc2ed2cf6ce8db767e89293118d21b7ad107b583
+EBUILD sleepyhead-0.9.3.ebuild 1078 SHA256 f16e61906d48f6e0d81ef7566e3e23dd0d2d442046dc47a7c854edf4cecb86a4 SHA512 8014dcde0c0acd2cbffda364b62bb5654a2d74d1ac289422781d5aab6ff2954900d646e0f0ccb124e7834a442c9d4accab82e93feecfc346e54a57ff53cd7de5 WHIRLPOOL ae4e5ab0b0b3803abc22728bcf6cef573485c96533eac6788135ff11d0b174b4ff14c6a842575256a33773a2ba3a8f57becccf6db63cb8c719334d522bcde209
+EBUILD sleepyhead-1.0.0_beta2.ebuild 1177 SHA256 fcfe10d849ff97ccb753b4e6a5dd71646cee7ac42e915913a628d2f5e2f74e25 SHA512 cc0e8514e6eec60d3aaa0aa0571ee779b79c4ef53237b34288cf3a05973ecb0d321ce6c74511e03d3e40cbc7abe1bab221cef5755b69df18cdbcc2469b7126c9 WHIRLPOOL 74bfaaa4f38b6f4f175eef0f630339bf32e6ec924e0e3c09f61d134250299c3c74da798f3cbf7effdee6c3f03d06aefc3154fc8a31383ae7932791e253416764
+EBUILD sleepyhead-9999.ebuild 1046 SHA256 139c4819c7fba3e568ceec79ebdec984578c082c1b1066383d1f4f9ed7701e7a SHA512 b5bb294779a48a520740e88083d7b9cafe0d5f442f141a746534df8ad3b79c94680b74572e8d3ea824de897fa34da224a5292b4dbfc9a4eb024ffcfdd4f6ec90 WHIRLPOOL a43235cc7fd4c4681677738941dea9100810c672b47bbaa6e377470051c3ea538b934ef2046d6ea6df91e6d478f2335e89169710498befb6f86edad3696d621f
+MISC ChangeLog 3263 SHA256 9445506113044f9129ecbef8e4b6d9f5221112e0987fab4a1702f7dc8f814731 SHA512 352e8012f99d2854cadbe3dbfaa5202f7fc852d597a4b0820d5238d344e6dd80af61ce858f061dd1538585ee4f6fae7620c7a1b0e655a82313e5271cc8c54b54 WHIRLPOOL ef34132d03eeb02020deacd1685ac114487f941491dbeb96f03e36e08d72b0e305be8446a2d127c3d66325a46f9da8663392a33804c2ba53ae506883d69adb77
+MISC ChangeLog-2015 2056 SHA256 9b560d865a9072c54c168688fd6d3d4c25261ff701995d3b9035e97db260980e SHA512 6642497436d0b5bba15b6cdc6a20d7f02d1c6108aee3de251ca261e2bccc6555fb6cd66282488d8159c6e70246966339e6e4c1c80c336b11ac26b5e88e31a682 WHIRLPOOL 9dd976d3df9e44f06e7ecba3f058dda34f2df6515b01804e54d56ff5a8749a8ceb25ef7c837a8b6e1ab5269a67c72209f141bfa0c2ed171af7a20043fa644b0c
+MISC metadata.xml 409 SHA256 3b4ae39e44b69d9c2ef6330d270cedfe8d45991311f0ffc335df495a20b91aa5 SHA512 bd3522a2a682e51f61f5c38db6003365e06226a2015fe2aa81ed638852a663084da4d4d39962abb36aacc37462d84b706e4b35023e265635904a4d1874044ae8 WHIRLPOOL 307b42a440410a08d73d8119c1f300e1297f3a0fbabbebdd3f1a4c6523ace3b6ea96df7d10952e05f488c65ef4634bf8c7c4ddb7c64fca9a9c4f878e8e590896
diff --git a/app-misc/sleepyhead/files/common_gui.patch b/app-misc/sleepyhead/files/common_gui.patch
new file mode 100644
index 000000000000..6e41e0ac4ce9
--- /dev/null
+++ b/app-misc/sleepyhead/files/common_gui.patch
@@ -0,0 +1,12 @@
+diff --git a/common_gui.cpp b/common_gui.cpp
+index 0f38ce8..36b0b9e 100644
+--- a/common_gui.cpp
++++ b/common_gui.cpp
+@@ -6,6 +6,7 @@
+
+ #include "common_gui.h"
+ #include "qglobal.h"
++#include <unistd.h>
+
+ #ifdef Q_WS_WIN32
+ #include "windows.h"
diff --git a/app-misc/sleepyhead/files/gitfix.patch b/app-misc/sleepyhead/files/gitfix.patch
new file mode 100644
index 000000000000..46cbef0a4530
--- /dev/null
+++ b/app-misc/sleepyhead/files/gitfix.patch
@@ -0,0 +1,15 @@
+--- a/SleepyHeadQT.pro
++++ b/SleepyHeadQT.pro
+@@ -31,10 +31,10 @@ TEMPLATE = app
+
+ #exists(.git):DEFINES += GIT_BRANCH=\\\"$$system(git rev-parse --symbolic-full-name --abbrev-ref HEAD)\\\"
+ exists(.git):DEFINES += GIT_BRANCH=\\\"$$system(git rev-parse --abbrev-ref HEAD)\\\"
+-else:DEFINES += GIT_BRANCH=\\\"NOT BUILT FROM GIT SOURCE\\\"
++else:DEFINES += GIT_BRANCH=\\\"UNKNOWN\\\"
+
+ exists(.git):DEFINES += GIT_REVISION=\\\"$$system(git rev-parse HEAD)\\\"
+-else:DEFINES += GIT_BRANCH=\\\"UNKNOWN\\\"
++else:DEFINES += GIT_REVISION=\\\"UNKNOWN\\\"
+
+ SOURCES += main.cpp\
+ SleepLib/machine.cpp \
diff --git a/app-misc/sleepyhead/files/prs1-64fix.patch b/app-misc/sleepyhead/files/prs1-64fix.patch
new file mode 100644
index 000000000000..a7b1070eeb4c
--- /dev/null
+++ b/app-misc/sleepyhead/files/prs1-64fix.patch
@@ -0,0 +1,13 @@
+diff --git a/SleepLib/loader_plugins/prs1_loader.cpp b/SleepLib/loader_plugins/prs1_loader.cpp
+index d7f102c..61f2d34 100644
+--- a/SleepLib/loader_plugins/prs1_loader.cpp
++++ b/SleepLib/loader_plugins/prs1_loader.cpp
+@@ -597,7 +597,7 @@ bool PRS1Loader::Parse002v5(qint32 sequence, quint32 timestamp, unsigned char *b
+ CPAP_LeakTotal, PRS1_12
+ };
+
+- int ncodes=sizeof(Codes)/sizeof(QString);
++ int ncodes=sizeof(Codes)/sizeof(ChannelID);
+ EventList * Code[0x20]={NULL};
+
+
diff --git a/app-misc/sleepyhead/files/prs1-code8fix.patch b/app-misc/sleepyhead/files/prs1-code8fix.patch
new file mode 100644
index 000000000000..ec7a121674be
--- /dev/null
+++ b/app-misc/sleepyhead/files/prs1-code8fix.patch
@@ -0,0 +1,12 @@
+diff --git a/SleepLib/loader_plugins/prs1_loader.cpp b/SleepLib/loader_plugins/prs1_loader.cpp
+index d7f102c..95de13b 100644
+--- a/SleepLib/loader_plugins/prs1_loader.cpp
++++ b/SleepLib/loader_plugins/prs1_loader.cpp
+@@ -722,6 +722,7 @@ bool PRS1Loader::Parse002v5(qint32 sequence, quint32 timestamp, unsigned char *b
+ if (!(Code[10]=session->AddEventList(cpapcode,EVL_Event))) return false;
+ }
+ Code[10]->AddEvent(tt,data[0]);
++ pos++;
+ break;
+ case 0x09: // ASV Codes
+ //code=CPAP_FlowLimit;
diff --git a/app-misc/sleepyhead/metadata.xml b/app-misc/sleepyhead/metadata.xml
new file mode 100644
index 000000000000..cabb7c423f61
--- /dev/null
+++ b/app-misc/sleepyhead/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>rich0@gentoo.org</email>
+ </maintainer>
+ <longdescription>QT-based application used to analyze data from various CPAP machines.</longdescription>
+ <upstream>
+ <remote-id type="github">rich0/rich0-sleepyhead</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/sleepyhead/sleepyhead-0.9.2.2-r1.ebuild b/app-misc/sleepyhead/sleepyhead-0.9.2.2-r1.ebuild
new file mode 100644
index 000000000000..ca723883d466
--- /dev/null
+++ b/app-misc/sleepyhead/sleepyhead-0.9.2.2-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils qt4-r2
+DESCRIPTION="Software used to analyze data from CPAP machines"
+HOMEPAGE="https://sourceforge.net/apps/mediawiki/sleepyhead/index.php?title=Main_Page"
+
+# Point to any required sources; these will be automatically downloaded by
+# Portage.
+SRC_URI="https://github.com/rich0/rich0-sleepyhead/tarball/${PV} -> ${P}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+IUSE=""
+
+DEPEND="virtual/opengl
+ x11-libs/libX11
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtopengl:4
+ dev-qt/qtwebkit:4"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/rich0-rich0-sleepyhead-86250b9"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+}
+
+src_prepare() {
+# qt4_src_prepare
+ cd "{$S}"
+ epatch "${FILESDIR}/gitfix.patch"
+ epatch "${FILESDIR}/prs1-64fix.patch"
+ epatch "${FILESDIR}/prs1-code8fix.patch"
+ epatch "${FILESDIR}/common_gui.patch"
+
+ sed -i '1i#define OF(x) x' quazip/ioapi.h quazip/unzip.c quazip/unzip.h \
+ quazip/zip.c quazip/zip.h quazip/zlib.h
+ eqmake4 SleepyHeadQT.pro
+}
+
+src_install() {
+ cd "{$S}"
+ dobin SleepyHead || die
+ dodoc README || die
+ dodoc docs/* || die
+}
diff --git a/app-misc/sleepyhead/sleepyhead-0.9.2.2.ebuild b/app-misc/sleepyhead/sleepyhead-0.9.2.2.ebuild
new file mode 100644
index 000000000000..1ece62067ecb
--- /dev/null
+++ b/app-misc/sleepyhead/sleepyhead-0.9.2.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils qt4-r2
+DESCRIPTION="Software used to analyze data from CPAP machines"
+HOMEPAGE="https://sourceforge.net/apps/mediawiki/sleepyhead/index.php?title=Main_Page"
+
+# Point to any required sources; these will be automatically downloaded by
+# Portage.
+SRC_URI="https://github.com/rich0/rich0-sleepyhead/tarball/${PV} -> ${P}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+IUSE=""
+
+DEPEND="virtual/opengl
+ x11-libs/libX11
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtopengl:4
+ dev-qt/qtwebkit:4"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/rich0-rich0-sleepyhead-86250b9"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+}
+
+src_prepare() {
+# qt4_src_prepare
+ cd "{$S}"
+ epatch "${FILESDIR}/gitfix.patch"
+ epatch "${FILESDIR}/prs1-64fix.patch"
+ sed -i '1i#define OF(x) x' quazip/ioapi.h quazip/unzip.c quazip/unzip.h \
+ quazip/zip.c quazip/zip.h quazip/zlib.h
+ eqmake4 SleepyHeadQT.pro
+}
+
+src_install() {
+ cd "{$S}"
+ dobin SleepyHead || die
+ dodoc README || die
+ dodoc docs/* || die
+}
diff --git a/app-misc/sleepyhead/sleepyhead-0.9.3.ebuild b/app-misc/sleepyhead/sleepyhead-0.9.3.ebuild
new file mode 100644
index 000000000000..0f42e2e1ab29
--- /dev/null
+++ b/app-misc/sleepyhead/sleepyhead-0.9.3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils qt4-r2
+DESCRIPTION="Software used to analyze data from CPAP machines"
+HOMEPAGE="https://sourceforge.net/apps/mediawiki/sleepyhead/index.php?title=Main_Page"
+
+# Point to any required sources; these will be automatically downloaded by
+# Portage.
+SRC_URI="https://github.com/rich0/rich0-sleepyhead/tarball/${PV} -> ${P}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+IUSE=""
+
+DEPEND="virtual/opengl
+ x11-libs/libX11
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtopengl:4
+ dev-qt/qtwebkit:4
+ virtual/glu"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/rich0-rich0-sleepyhead-34e0b92"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+}
+
+src_prepare() {
+# qt4_src_prepare
+ cd "{$S}"
+ epatch "${FILESDIR}/common_gui.patch"
+
+# sed -i '1i#define OF(x) x' quazip/ioapi.h quazip/unzip.c quazip/unzip.h \
+# quazip/zip.c quazip/zip.h quazip/zlib.h
+ eqmake4 SleepyHeadQT.pro
+}
+
+src_install() {
+ cd "{$S}"
+ dobin SleepyHead || die
+ dodoc README || die
+ dodoc docs/* || die
+}
diff --git a/app-misc/sleepyhead/sleepyhead-1.0.0_beta2.ebuild b/app-misc/sleepyhead/sleepyhead-1.0.0_beta2.ebuild
new file mode 100644
index 000000000000..779450ed1051
--- /dev/null
+++ b/app-misc/sleepyhead/sleepyhead-1.0.0_beta2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils qmake-utils
+DESCRIPTION="Software used to analyze data from CPAP machines"
+HOMEPAGE="https://sleepyhead.jedimark.net/"
+
+# Point to any required sources; these will be automatically downloaded by
+# Portage.
+SRC_URI="https://gitlab.com/sleepyhead/sleepyhead-code/repository/archive.tar.bz2?ref=1.0.0-beta-2 -> ${P}.tar.bz2"
+LICENSE="GPL-3"
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+IUSE=""
+
+DEPEND="virtual/opengl
+ x11-libs/libX11
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtwebkit:5
+ dev-qt/qtserialport:5
+ virtual/glu"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/sleepyhead-code-1.0.0-beta-2-6b1c125218475720e1bf7c920ed3d10140b0b7c2"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+}
+
+src_prepare() {
+ eapply_user
+ rm configure
+ cd "${S}/3rdparty/quazip/"
+# epatch "${FILESDIR}/common_gui.patch"
+
+ sed -i '1i#define OF(x) x' quazip/ioapi.h quazip/unzip.c quazip/unzip.h \
+ quazip/zip.c quazip/zip.h
+ cd "${S}"
+ eqmake5 SleepyHeadQT.pro
+}
+
+src_install() {
+ cd "${S}/sleepyhead"
+ dobin SleepyHead || die
+ dodoc ../README || die
+ dodoc docs/* || die
+}
diff --git a/app-misc/sleepyhead/sleepyhead-9999.ebuild b/app-misc/sleepyhead/sleepyhead-9999.ebuild
new file mode 100644
index 000000000000..36e00d73fd3d
--- /dev/null
+++ b/app-misc/sleepyhead/sleepyhead-9999.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils git-2 qt4-r2
+DESCRIPTION="Software used to analyze data from CPAP machines"
+HOMEPAGE="https://sourceforge.net/apps/mediawiki/sleepyhead/index.php?title=Main_Page"
+
+# Point to any required sources; these will be automatically downloaded by
+# Portage.
+EGIT_REPO_URI="https://github.com/rich0/rich0-sleepyhead.git"
+EGIT_BRANCH="rich-test"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS=""
+
+IUSE="debug"
+
+DEPEND="virtual/opengl:=
+ x11-libs/libX11:=
+ dev-qt/qtcore:4=
+ dev-qt/qtgui:4=
+ dev-qt/qtopengl:4=
+ dev-qt/qtwebkit:4=
+ dev-libs/quazip:=[qt4]"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+git-2_src_unpack
+}
+
+src_prepare() {
+# qt4_src_prepare
+ cd "{$S}"
+# sed -i '1i#define OF(x) x' quazip/ioapi.h quazip/unzip.c quazip/unzip.h \
+# quazip/zip.c quazip/zip.h quazip/zlib.h
+ eqmake4 SleepyHeadQT.pro
+}
+
+src_install() {
+ cd "{$S}"
+ dobin sleepyhead/SleepyHead || die
+ dodoc README || die
+ dodoc sleepyhead/docs/* || die
+}