timetracker: upstreamed patchset.

This commit is contained in:
Jerome Duval
2018-09-18 14:54:54 +02:00
parent 2a46d48d08
commit 7571d58664
2 changed files with 5 additions and 55 deletions

View File

@@ -1,48 +0,0 @@
From 643f6cbd6106b72c0d5cc17af33ffbaf73430b11 Mon Sep 17 00:00:00 2001
From: nys <33534144+nysnatuss@users.noreply.github.com>
Date: Sun, 31 Dec 2017 23:13:38 +0000
Subject: patch for x86_64
diff --git a/src/Makefile b/src/Makefile
index b231dc7..f19ba30 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -59,7 +59,7 @@ RSRCS =
# - if your library does not follow the standard library naming scheme,
# you need to specify the path to the library and it's name.
# (e.g. for mylib.a, specify "mylib.a" or "path/mylib.a")
-LIBS = be
+LIBS = be $(STDCPPLIBS)
# Specify additional paths to directories following the standard libXXX.so
# or libXXX.a naming scheme. You can specify full paths or paths relative
diff --git a/src/TaskListItem.cpp b/src/TaskListItem.cpp
index 3381344..134e00d 100644
--- a/src/TaskListItem.cpp
+++ b/src/TaskListItem.cpp
@@ -47,7 +47,7 @@ TaskListItem::GetTime()
void
TaskListItem::DrawItem(BView* owner, BRect itemRect,
- bool drawEverything = false)
+ bool drawEverything)
{
// colors
rgb_color background = tint_color(ui_color(B_LIST_BACKGROUND_COLOR), 1.08);
diff --git a/src/TimeTrackerWindow.cpp b/src/TimeTrackerWindow.cpp
index d0eabe8..187cbf4 100644
--- a/src/TimeTrackerWindow.cpp
+++ b/src/TimeTrackerWindow.cpp
@@ -200,7 +200,7 @@ TimeTrackerWindow::LoadTasks()
char Buffer[255];
sprintf(Buffer, "Task%d", pos);
const char* TaskName;
- TaskName = Tasks.FindString(Buffer, 0L);
+ TaskName = Tasks.FindString(Buffer, 0);
if (TaskName != NULL) {
sprintf(Buffer, "TaskTime%d", pos);
bigtime_t* time;
--
2.15.0

View File

@@ -7,13 +7,11 @@ HOMEPAGE="https://github.com/HaikuArchives/TimeTracker"
COPYRIGHT="200? Michael Wulff Nielsen
2016 Humdinger"
LICENSE="GNU GPL v1"
REVISION="1"
SOURCE_URI="https://github.com/HaikuArchives/TimeTracker/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="eeef96d6ccccf580497787b0c68ba6014c4985553266027c86cd0aff16037857"
SOURCE_DIR="TimeTracker-$portVersion"
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
PATCHES="timetracker-$portVersion.patchset"
fi
REVISION="2"
srcGitRev="11c4920c54d2761028b1b0488fe82cc92da907d0"
SOURCE_URI="https://github.com/HaikuArchives/TimeTracker/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="1b93a4ae2ab4de234c89d221ee1247d7e733071a5282d2ec475accdf312d44e5"
SOURCE_DIR="TimeTracker-$srcGitRev"
ARCHITECTURES="x86_gcc2 ?x86 x86_64"