mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add xplanet.
* gnu/packages/patches/xplanet-1.3.1-cxx11-eof.patch, gnu/packages/patches/xplanet-1.3.1-libdisplay_DisplayOutput.cpp.patch, gnu/packages/patches/xplanet-1.3.1-libimage_gif.c.patch, gnu/packages/patches/xplanet-1.3.1-xpUtil-Add2017LeapSecond.cpp.patch: New files. * gnu/packages/astronomy.scm (xplanet): New variable. [source]: Use patches. * gnu/local.mk (dist_patch_DATA): Add them. Signed-off-by: Eric Bavier <bavier@member.fsf.org>
This commit is contained in:
parent
084d156563
commit
77704cb13e
6 changed files with 299 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
|||
Origin: $NetBSD: patch-src_libdisplay_DisplayOutput.cpp,v 1.1 2019/11/16 17:36:28 ng0 Exp $
|
||||
|
||||
Modified by: R Veera Kumar <vkor@vkten.in> 2020-03-28; change to patch -p1
|
||||
|
||||
diff -uNr xplanet-1.3.1/src/libdisplay/DisplayOutput.cpp xplanet-1.3.1.new/src/libdisplay/DisplayOutput.cpp
|
||||
--- xplanet-1.3.1/src/libdisplay/DisplayOutput.cpp 2013-02-17 01:07:47.000000000 +0530
|
||||
+++ xplanet-1.3.1.new/src/libdisplay/DisplayOutput.cpp 2020-03-28 22:08:44.432499170 +0530
|
||||
@@ -51,7 +51,7 @@
|
||||
string outputFilename = options->OutputBase();
|
||||
int startIndex = options->OutputStartIndex();
|
||||
int stopIndex = options->NumTimes() + startIndex - 1;
|
||||
- if (stopIndex > 1)
|
||||
+ if (stopIndex > 0)
|
||||
{
|
||||
const int digits = (int) (log10((double) stopIndex) + 1);
|
||||
char buffer[64];
|
Loading…
Add table
Add a link
Reference in a new issue