- Update to 4.2.13.0
- Add files/patch-geogebra.desktop - New download site - Add shells/bash to RUN_DEPENDS - Remove post-patch target - Fix format of pkg-descr
This commit is contained in:
parent
ebe4632ec0
commit
8de651e0dc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=309963
6 changed files with 68 additions and 72 deletions
|
@ -1,18 +1,19 @@
|
||||||
# Created by: Nicola Vitale <nivit@email.it>
|
# Created by: Nicola Vitale <nivit@email.it>
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= geogebra-i18n
|
PORTNAME= geogebra
|
||||||
DISTVERSION= 3-2-47-0
|
PORTVERSION= 4.2.13.0
|
||||||
PORTREVISION= 0
|
#PORTREVISION= 0
|
||||||
CATEGORIES= math java
|
CATEGORIES= math java
|
||||||
MASTER_SITES= http://nivi.interfree.it/distfiles/${PORTNAME}/
|
MASTER_SITES= GOOGLE_CODE
|
||||||
#PKGNAMESUFFIX= -i18n
|
PKGNAMESUFFIX= -i18n
|
||||||
DISTNAME= GeoGebra-FreeBSD-Installer-${DISTVERSION}
|
DISTNAME= GeoGebra-Unixlike-Installer-${PORTVERSION}
|
||||||
|
|
||||||
MAINTAINER= nivit@FreeBSD.org
|
MAINTAINER= nivit@FreeBSD.org
|
||||||
COMMENT= Dynamic software that joins geometry, algebra, and calculus
|
COMMENT= Dynamic software that joins geometry, algebra, and calculus
|
||||||
|
|
||||||
RUN_DEPENDS= ${LOCALBASE}/bin/update-mime-database:${PORTSDIR}/misc/shared-mime-info
|
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash \
|
||||||
|
${LOCALBASE}/bin/update-mime-database:${PORTSDIR}/misc/shared-mime-info
|
||||||
|
|
||||||
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
||||||
|
|
||||||
|
@ -22,7 +23,6 @@ JAVA_VERSION= 1.6+
|
||||||
|
|
||||||
NO_BUILD= yes
|
NO_BUILD= yes
|
||||||
|
|
||||||
USE_DOS2UNIX= geogebra geogebra.desktop
|
|
||||||
USE_GNOME= desktopfileutils
|
USE_GNOME= desktopfileutils
|
||||||
USE_JAVA= yes
|
USE_JAVA= yes
|
||||||
|
|
||||||
|
@ -30,16 +30,11 @@ WRKSRC= ${WRKDIR}/geogebra-${PORTVERSION}
|
||||||
|
|
||||||
FIND_JARS= -type f -name "*.jar" -maxdepth 1 -print0
|
FIND_JARS= -type f -name "*.jar" -maxdepth 1 -print0
|
||||||
|
|
||||||
JARFILE= ${PORTNAME:S,-i18n,,}.jar
|
|
||||||
|
|
||||||
post-patch:
|
|
||||||
${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},g' ${WRKSRC}/${PORTNAME:S,-i18n,,}
|
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/geogebra ${PREFIX}/bin/
|
|
||||||
cd ${WRKSRC} && ${MKDIR} ${DATADIR} && \
|
cd ${WRKSRC} && ${MKDIR} ${DATADIR} && \
|
||||||
|
${INSTALL_SCRIPT} ${WRKSRC}/geogebra ${DATADIR} && \
|
||||||
|
${LN} -s ${DATADIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} && \
|
||||||
${FIND} . ${FIND_JARS} | ${XARGS} -0 -J % ${INSTALL_DATA} % ${DATADIR} && \
|
${FIND} . ${FIND_JARS} | ${XARGS} -0 -J % ${INSTALL_DATA} % ${DATADIR} && \
|
||||||
${COPYTREE_SHARE} unsigned ${DATADIR} && \
|
|
||||||
${COPYTREE_SHARE} icons ${PREFIX}/share && \
|
${COPYTREE_SHARE} icons ${PREFIX}/share && \
|
||||||
${MKDIR} ${PREFIX}/share/mime/packages && \
|
${MKDIR} ${PREFIX}/share/mime/packages && \
|
||||||
${MKDIR} ${PREFIX}/share/applications && \
|
${MKDIR} ${PREFIX}/share/applications && \
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
SHA256 (GeoGebra-FreeBSD-Installer-3-2-47-0.tar.gz) = 88f32d575ac07756766b163514a6f3eeb8d74667c0edbe10659e32352dd00575
|
SHA256 (GeoGebra-Unixlike-Installer-4.2.13.0.tar.gz) = e06148485d4dc15169210b548f682d448feac0ce4b748a381843c6a20e53fa3f
|
||||||
SIZE (GeoGebra-FreeBSD-Installer-3-2-47-0.tar.gz) = 7706759
|
SIZE (GeoGebra-Unixlike-Installer-4.2.13.0.tar.gz) = 9103015
|
||||||
|
|
|
@ -1,38 +1,33 @@
|
||||||
$FreeBSD$
|
--- ./geogebra.orig 2012-10-07 13:54:43.000000000 +0200
|
||||||
--- ./geogebra.orig 2011-08-12 11:30:50.000000000 +0200
|
+++ ./geogebra 2012-10-07 13:56:32.000000000 +0200
|
||||||
+++ ./geogebra 2011-08-12 11:31:39.000000000 +0200
|
@@ -1,4 +1,4 @@
|
||||||
@@ -34,7 +34,7 @@
|
-#!/bin/bash
|
||||||
--help | --hel | --he | --h )
|
+#!/usr/bin/env bash
|
||||||
func_usage; exit 0 ;;
|
#---------------------------------------------
|
||||||
esac
|
# Script to start GeoGebra
|
||||||
- if [ $(expr match "$i" '.*-Xm') -ne 0 ]; then
|
#---------------------------------------------
|
||||||
+ if [ $(expr -- "$i" : '.*-Xm') -ne 0 ]; then
|
@@ -184,19 +184,19 @@
|
||||||
if [ -z "$JAVA_OPTS" ]; then
|
--help | --hel | --he | --h )
|
||||||
JAVA_OPTS="$i"
|
func_usage; exit 0 ;;
|
||||||
else
|
esac
|
||||||
@@ -42,7 +42,7 @@
|
- if [ $(expr match "$i" '.*--') -ne 0 ]; then
|
||||||
fi
|
+ if [ $(expr -- "$i" : '.*--') -ne 0 ]; then
|
||||||
shift $((1))
|
GG_OPTS[${#GG_OPTS[*]}]="$i"
|
||||||
else
|
shift $((1))
|
||||||
- if [ $(expr match "$i" '.*--') -ne 0 ]; then
|
- elif [ $(expr match "$i" '.*-Xms') -ne 0 ]; then
|
||||||
+ if [ $(expr -- "$i" : '.*--') -ne 0 ]; then
|
+ elif [ $(expr -- "$i" : '.*-Xms') -ne 0 ]; then
|
||||||
if [ -z "$GG_OPTS" ]; then
|
GG_XMS=${i:4}
|
||||||
GG_OPTS="$i"
|
shift $((1))
|
||||||
else
|
- elif [ $(expr match "$i" '.*-Xmx') -ne 0 ]; then
|
||||||
@@ -54,13 +54,13 @@
|
+ elif [ $(expr -- "$i" : '.*-Xmx') -ne 0 ]; then
|
||||||
done
|
GG_XMX=${i:4}
|
||||||
|
shift $((1))
|
||||||
# if memory not set, change to GeoGebra defaults
|
- elif [ $(expr match "$i" '.*-Djava.library.path') -ne 0 ]; then
|
||||||
-if [ $(expr match "$JAVA_OPTS" ".*-Xmx") -eq 0 ]; then
|
+ elif [ $(expr -- "$i" : '.*-Djava.library.path') -ne 0 ]; then
|
||||||
+if [ $(expr -- "$JAVA_OPTS" : ".*-Xmx") -eq 0 ]; then
|
GG_DJAVA_LIBRARY_PATH=${i:20}
|
||||||
JAVA_OPTS="$JAVA_OPTS -Xmx512m"
|
shift $((1))
|
||||||
fi
|
- elif [ $(expr match "$i" '.*-JavaCMD') -ne 0 ]; then
|
||||||
|
+ elif [ $(expr -- "$i" : '.*-JavaCMD') -ne 0 ]; then
|
||||||
-if [ $(expr match "$JAVA_OPTS" ".*-Xms") -eq 0 ]; then
|
JAVACMD=${i:9}
|
||||||
+if [ $(expr -- "$JAVA_OPTS" : ".*-Xms") -eq 0 ]; then
|
shift $((1))
|
||||||
JAVA_OPTS="$JAVA_OPTS -Xms32m"
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
# run
|
|
||||||
-exec $JAVACMD $JAVA_OPTS -jar /usr/share/geogebra/geogebra.jar $GG_OPTS "$@"
|
|
||||||
+exec $JAVACMD $JAVA_OPTS -jar %%DATADIR%%/geogebra.jar $GG_OPTS "$@"
|
|
||||||
|
|
9
math/geogebra-i18n/files/patch-geogebra.desktop
Normal file
9
math/geogebra-i18n/files/patch-geogebra.desktop
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
--- ./geogebra.desktop.orig 2012-10-07 14:22:36.000000000 +0200
|
||||||
|
+++ ./geogebra.desktop 2012-10-07 14:22:43.000000000 +0200
|
||||||
|
@@ -27,5 +27,5 @@
|
||||||
|
Type=Application
|
||||||
|
StartupNotify=true
|
||||||
|
StartupWMClass=geogebra-GeoGebra
|
||||||
|
-Categories=Education;Math;
|
||||||
|
+Categories=Education;Math;Science;
|
||||||
|
MimeType=application/vnd.geogebra.file;application/vnd.geogebra.tool;
|
|
@ -12,5 +12,4 @@ and offers commands like Root or Extremum.
|
||||||
GeoGebra received several international awards including the European
|
GeoGebra received several international awards including the European
|
||||||
and German educational software award.
|
and German educational software award.
|
||||||
|
|
||||||
Author: Markus Hohenwarter <Markus.Hohenwarter@sbg.ac.at>
|
WWW: http://www.geogebra.at/
|
||||||
WWW: http://www.geogebra.at/
|
|
||||||
|
|
|
@ -40,22 +40,20 @@ share/icons/hicolor/96x96/mimetypes/application-vnd.geogebra.tool.png
|
||||||
share/icons/hicolor/scalable/apps/geogebra.svgz
|
share/icons/hicolor/scalable/apps/geogebra.svgz
|
||||||
share/icons/hicolor/scalable/mimetypes/application-vnd.geogebra.file.svgz
|
share/icons/hicolor/scalable/mimetypes/application-vnd.geogebra.file.svgz
|
||||||
share/icons/hicolor/scalable/mimetypes/application-vnd.geogebra.tool.svgz
|
share/icons/hicolor/scalable/mimetypes/application-vnd.geogebra.tool.svgz
|
||||||
share/java/geogebra-i18n/geogebra.jar
|
%%DATADIR%%/geogebra
|
||||||
share/java/geogebra-i18n/geogebra_cas.jar
|
%%DATADIR%%/geogebra.jar
|
||||||
share/java/geogebra-i18n/geogebra_export.jar
|
%%DATADIR%%/geogebra_algos.jar
|
||||||
share/java/geogebra-i18n/geogebra_gui.jar
|
%%DATADIR%%/geogebra_cas.jar
|
||||||
share/java/geogebra-i18n/geogebra_main.jar
|
%%DATADIR%%/geogebra_export.jar
|
||||||
share/java/geogebra-i18n/geogebra_properties.jar
|
%%DATADIR%%/geogebra_gui.jar
|
||||||
share/java/geogebra-i18n/unsigned/geogebra.jar
|
%%DATADIR%%/geogebra_javascript.jar
|
||||||
share/java/geogebra-i18n/unsigned/geogebra_cas.jar
|
%%DATADIR%%/geogebra_main.jar
|
||||||
share/java/geogebra-i18n/unsigned/geogebra_export.jar
|
%%DATADIR%%/geogebra_properties.jar
|
||||||
share/java/geogebra-i18n/unsigned/geogebra_gui.jar
|
%%DATADIR%%/jlatexmath.jar
|
||||||
share/java/geogebra-i18n/unsigned/geogebra_main.jar
|
%%DATADIR%%/jlm_cyrillic.jar
|
||||||
share/java/geogebra-i18n/unsigned/geogebra_properties.jar
|
%%DATADIR%%/jlm_greek.jar
|
||||||
share/java/geogebra-i18n/unsigned/number_of_degs_in_straight_angle.ggb
|
|
||||||
share/mime/packages/geogebra.xml
|
share/mime/packages/geogebra.xml
|
||||||
@dirrm share/java/geogebra-i18n/unsigned
|
@dirrm %%DATADIR%%
|
||||||
@dirrm share/java/geogebra-i18n
|
|
||||||
@exec %%LOCALBASE%%/bin/update-desktop-database || /usr/bin/true
|
@exec %%LOCALBASE%%/bin/update-desktop-database || /usr/bin/true
|
||||||
@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime || /usr/bin/true
|
@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime || /usr/bin/true
|
||||||
@unexec %%LOCALBASE%%/bin/update-desktop-database || /usr/bin/true
|
@unexec %%LOCALBASE%%/bin/update-desktop-database || /usr/bin/true
|
||||||
|
|
Loading…
Reference in a new issue