You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-mathematics/yacas/files/yacas-1.3.4-java-version.patch

30 lines
1.0 KiB

--- JavaYacas/dumpversion.cpp.orig 2014-06-09 12:10:15.095959491 -0700
+++ JavaYacas/dumpversion.cpp 2014-06-09 12:11:09.565339056 -0700
@@ -1,11 +1,11 @@
#include <stdio.h>
#include <stdlib.h>
-#include "version.h"
+#include "yacas/yacas_version.h"
int main(int argc, char** argv)
{
printf("package net.sf.yacas;\n");
- printf("class CVersion { static String VERSION = \"%s\"; }\n", VERSION);
+ printf("class CVersion { static String VERSION = \"%s\"; }\n", YACAS_VERSION);
return 0;
}
--- JavaYacas/makefile.yacas.orig 2014-06-09 12:11:47.516603467 -0700
+++ JavaYacas/makefile.yacas 2014-06-09 15:03:17.329987079 -0700
@@ -32,8 +32,8 @@
.java.class:
$(JAVAC) $(JAVACFLAGS) $*.java
-net/sf/yacas/CVersion.java: ../src/version.h dumpversion.cpp
- $(CXX) $(CXXFLAGS) -I ../src dumpversion.cpp -o dumpversion
+net/sf/yacas/CVersion.java: ../include/yacas/yacas_version.h dumpversion.cpp
+ $(CXX) $(CXXFLAGS) -I ../include dumpversion.cpp -o dumpversion
./dumpversion > net/sf/yacas/CVersion.java