cheat by tweaking the version to 4.0.1.0

This commit is contained in:
Manuel Friedli 2012-01-21 21:06:40 +00:00
parent c37dfb6aec
commit 86f5317266
3 changed files with 58 additions and 0 deletions

View file

@ -1,4 +1,6 @@
AUX garminplugin-0.3.7-r1-version-to-4.0.1.0.patch 1518 RMD160 3abca2429ce89db6ebef8b13c087768110634cfb SHA1 9286e5677888991629df8de9865a39e3cfc55ddf SHA256 69b610344e37decbb0dfa4f71c3576b7673fc1f27342fdbcaa4786b9e09b6609
DIST garminplugin-0.3.3.tar.gz 123929 RMD160 c6cb323f8639b969a7817f67e7b86bde7a1e2405 SHA1 f2c4043b35bd2d38afd0ba8987a06561bea59186 SHA256 771c986076c9cd7743f0484379b076e9ad99ee9e051d366024179a1a76a24ec8 DIST garminplugin-0.3.3.tar.gz 123929 RMD160 c6cb323f8639b969a7817f67e7b86bde7a1e2405 SHA1 f2c4043b35bd2d38afd0ba8987a06561bea59186 SHA256 771c986076c9cd7743f0484379b076e9ad99ee9e051d366024179a1a76a24ec8
DIST garminplugin-0.3.7.tar.gz 140153 RMD160 be6a46bef3497e2600bba40d12f2aa4b428cf557 SHA1 457e9dd41e0d230bc7feb27470320f5627272b9d SHA256 cffdd9845f19a96d4998b3f162ee39de29f439a181878b47e4704c1681414cae DIST garminplugin-0.3.7.tar.gz 140153 RMD160 be6a46bef3497e2600bba40d12f2aa4b428cf557 SHA1 457e9dd41e0d230bc7feb27470320f5627272b9d SHA256 cffdd9845f19a96d4998b3f162ee39de29f439a181878b47e4704c1681414cae
EBUILD garminplugin-0.3.3.ebuild 948 RMD160 4e8ec0375b4b628b6d0023f67339d94ba6e68a3e SHA1 602d2efea480dc5f5e89fb7082febc95fd0b679a SHA256 4c80d10fe24095753d1d61b87ddf8ec3ed1428183d9d0e4c43310739daf53097 EBUILD garminplugin-0.3.3.ebuild 948 RMD160 4e8ec0375b4b628b6d0023f67339d94ba6e68a3e SHA1 602d2efea480dc5f5e89fb7082febc95fd0b679a SHA256 4c80d10fe24095753d1d61b87ddf8ec3ed1428183d9d0e4c43310739daf53097
EBUILD garminplugin-0.3.7-r1.ebuild 1007 RMD160 3f49081b07171098555b235fec7142267061d5bc SHA1 afa6bfdf4e3eb27408293fb75af3eb007599ae03 SHA256 b94ab5961be50c508e4b25fca7e03968322a438bb08ac1a9ee1862a7672c5b25
EBUILD garminplugin-0.3.7.ebuild 950 RMD160 56ab15236bf3874f3fc36d69293e847cc2664611 SHA1 8b95d9258b997beec8fe5e4ed35cea15759f4308 SHA256 a459fa7ba0b9ecbedfc1c6dfaaeabb37145c8ea30e54df790dc7770d7d2cec91 EBUILD garminplugin-0.3.7.ebuild 950 RMD160 56ab15236bf3874f3fc36d69293e847cc2664611 SHA1 8b95d9258b997beec8fe5e4ed35cea15759f4308 SHA256 a459fa7ba0b9ecbedfc1c6dfaaeabb37145c8ea30e54df790dc7770d7d2cec91

View file

@ -0,0 +1,11 @@
--- src/main.cpp~ 2012-01-18 10:37:28.000000000 +0100
+++ src/main.cpp 2012-01-21 22:01:06.349137806 +0100
@@ -1508,7 +1508,7 @@
Property value;
value.writeable = false;
value.type = NPVariantType_String;
- value.stringValue = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n<Requests xmlns=\"http://www.garmin.com/xmlschemas/PcSoftwareUpdate/v2\">\n\n<Request>\n<PartNumber>006-A0160-00</PartNumber>\n<Version>\n<VersionMajor>3</VersionMajor>\n<VersionMinor>0</VersionMinor>\n<BuildMajor>1</BuildMajor>\n<BuildMinor>0</BuildMinor>\n<BuildType>Release</BuildType>\n</Version>\n<LanguageID>0</LanguageID>\n</Request>\n\n</Requests>\n";
+ value.stringValue = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n<Requests xmlns=\"http://www.garmin.com/xmlschemas/PcSoftwareUpdate/v2\">\n\n<Request>\n<PartNumber>006-A0160-00</PartNumber>\n<Version>\n<VersionMajor>4</VersionMajor>\n<VersionMinor>0</VersionMinor>\n<BuildMajor>1</BuildMajor>\n<BuildMinor>0</BuildMinor>\n<BuildType>Release</BuildType>\n</Version>\n<LanguageID>0</LanguageID>\n</Request>\n\n</Requests>\n";
propertyList["VersionXml"] = value;
value.stringValue = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n<ProgressWidget xmlns=\"http://www.garmin.com/xmlschemas/PluginAPI/v1\">\n<Title>GarminPlugin Status not yet implemented</Title>\n<Text></Text>\n<Text></Text>\n<Text>0% complete</Text><ProgressBar Type=\"Percentage\" Value=\"0\"/></ProgressWidget>\n";
propertyList["ProgressXml"] = value;

View file

@ -0,0 +1,45 @@
# Copyright 2011 Christian Wasserthal
# Distributed under the terms of the GNU General Public License v2
EAPI="2"
inherit eutils
DESCRIPTION="A free replacement for the Garmin browser plugin"
HOMEPAGE="http://www.andreas-diesner.de/garminplugin/"
SRC_URI="http://github.com/adiesner/GarminPlugin/tarball/V${PV} -> ${P}.tar.gz"
MY_S="adiesner-GarminPlugin-5ccae59"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86 ~amd64"
RDEPEND="sci-geosciences/garmintools
sci-geosciences/gpsbabel
dev-libs/tinyxml[stl]
dev-libs/libusb"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PF}-version-to-4.0.1.0.patch || die "Unable to tweak version"
}
src_configure() {
cd "${MY_S}/src" || die "barf"
econf || die "econf failed"
}
src_compile() {
cd "${MY_S}/src" || die "barf"
emake || die "emake failed"
}
src_install() {
mkdir -p "${D}/usr/lib/nsbrowser/plugins" || die "mkdir failed"
cp "${MY_S}/src/npGarminPlugin.so" "${D}/usr/lib/nsbrowser/plugins/" || die "cp failed"
}