diff options
author | Richard Freeman <rich0@gentoo.org> | 2012-04-11 18:20:32 +0000 |
---|---|---|
committer | Richard Freeman <rich0@gentoo.org> | 2012-04-11 18:20:32 +0000 |
commit | dec7c262adf13aecffe0133caf36ce8ed5842e16 (patch) | |
tree | 98e5cae6965c74d02a3e213f6c589df208efc3d8 /app-misc | |
parent | Remove unused patch. (diff) | |
download | gentoo-2-dec7c262adf13aecffe0133caf36ce8ed5842e16.tar.gz gentoo-2-dec7c262adf13aecffe0133caf36ce8ed5842e16.tar.bz2 gentoo-2-dec7c262adf13aecffe0133caf36ce8ed5842e16.zip |
add fix for prs1 loader
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/sleepyhead/ChangeLog | 8 | ||||
-rw-r--r-- | app-misc/sleepyhead/files/prs1-code8fix.patch | 12 | ||||
-rw-r--r-- | app-misc/sleepyhead/sleepyhead-0.9.2.2-r1.ebuild | 52 |
3 files changed, 71 insertions, 1 deletions
diff --git a/app-misc/sleepyhead/ChangeLog b/app-misc/sleepyhead/ChangeLog index 27d404ddc60b..9199e9221252 100644 --- a/app-misc/sleepyhead/ChangeLog +++ b/app-misc/sleepyhead/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-misc/sleepyhead # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/sleepyhead/ChangeLog,v 1.3 2012/03/23 20:28:24 rich0 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/sleepyhead/ChangeLog,v 1.4 2012/04/11 18:20:32 rich0 Exp $ + +*sleepyhead-0.9.2.2-r1 (11 Apr 2012) + + 11 Apr 2012; Richard Freeman <rich0@gentoo.org> +files/prs1-code8fix.patch, + +sleepyhead-0.9.2.2-r1.ebuild: + add fix for prs1 loader 23 Mar 2012; Richard Freeman <rich0@gentoo.org> sleepyhead-0.9.2.2.ebuild, -files/zlib-of.patch: 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/sleepyhead-0.9.2.2-r1.ebuild b/app-misc/sleepyhead/sleepyhead-0.9.2.2-r1.ebuild new file mode 100644 index 000000000000..4e3dff262701 --- /dev/null +++ b/app-misc/sleepyhead/sleepyhead-0.9.2.2-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/sleepyhead/sleepyhead-0.9.2.2-r1.ebuild,v 1.1 2012/04/11 18:20:32 rich0 Exp $ + +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 + x11-libs/qt-core + x11-libs/qt-gui + x11-libs/qt-opengl + x11-libs/qt-webkit" +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" + + 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 +} |