diff options
author | hauke <hauke@pkgsrc.org> | 2021-06-29 14:28:12 +0000 |
---|---|---|
committer | hauke <hauke@pkgsrc.org> | 2021-06-29 14:28:12 +0000 |
commit | 7d388d2fa7759dffd13a2103bc607d1a81f7fc58 (patch) | |
tree | e6dd7be9bef4375e53735b08bad775e177dbf85e /math | |
parent | 6f36063a484693c8c5abf2f73bd612eb4ccfd462 (diff) | |
download | pkgsrc-7d388d2fa7759dffd13a2103bc607d1a81f7fc58.tar.gz |
Add SMath Studio as math/smath-studio.
While the license allows to re-distribute the source tarball
unchanged, an automatic download fails, so it will have to be
downloaded in a browser.
From the upstream description:
SMath Studio is a tiny, powerful, free mathematical program with
WYSIWYG editor and complete units of measurements support.
It provides numerous computing features and rich user interface
translated into about 40 different languages. The application also
contains an integrated mathematical reference book.
It can be easily extended based on your needs. A built-in Extensions
Manager tool allows to get access to hundreds official and third-party
resources of the following types: usage examples, plug-ins, SMath
Viewer based applications, snippets, interface translations,
interactive books, handbooks and tutorials.
Diffstat (limited to 'math')
-rw-r--r-- | math/smath-studio/DESCR | 12 | ||||
-rw-r--r-- | math/smath-studio/Makefile | 76 | ||||
-rw-r--r-- | math/smath-studio/PLIST | 131 | ||||
-rw-r--r-- | math/smath-studio/distinfo | 6 | ||||
-rw-r--r-- | math/smath-studio/files/smath-studio.sh | 7 |
5 files changed, 232 insertions, 0 deletions
diff --git a/math/smath-studio/DESCR b/math/smath-studio/DESCR new file mode 100644 index 00000000000..8459cb4ee8e --- /dev/null +++ b/math/smath-studio/DESCR @@ -0,0 +1,12 @@ +SMath Studio is a tiny, powerful, free mathematical program with +WYSIWYG editor and complete units of measurements support. + +It provides numerous computing features and rich user interface +translated into about 40 different languages. The application also +contains an integrated mathematical reference book. + +It can be easily extended based on your needs. A built-in Extensions +Manager tool allows to get access to hundreds official and third-party +resources of the following types: usage examples, plug-ins, SMath +Viewer based applications, snippets, interface translations, +interactive books, handbooks and tutorials. diff --git a/math/smath-studio/Makefile b/math/smath-studio/Makefile new file mode 100644 index 00000000000..b01d60827f3 --- /dev/null +++ b/math/smath-studio/Makefile @@ -0,0 +1,76 @@ +# $NetBSD: Makefile,v 1.1 2021/06/29 14:28:12 hauke Exp $ + +DISTNAME= SMathStudioDesktop.${PKGVERSION_NOREV:S/./_/g}.Mono +PKGNAME= smath-studio-${PKGVER} +PKGVER= 0.99.7822 +CATEGORIES= math +MASTER_SITES= https://smath.com/file/oVRx7/ + +MAINTAINER= hauke@NetBSD.org +HOMEPAGE= https://smath.com/ +DOWNLOAD= https://en.smath.com/view/SMathStudio/summary +DOWNLOAD_NAME= SMath Studio Desktop for Mono +COMMENT= Tiny, powerful, free mathematical program with WYSIWYG editor + +LICENSE= smath-license +RESTRICTED= Redistribution of repackaged binaries not permitted +NO_BIN_ON_CDROM= ${RESTRICTED} +NO_BIN_ON_FTP= ${RESTRICTED} + +EXTRACT_DIR= ${WRKDIR}/${DISTNAME} + +USE_LANGUAGES= # none +NO_BUILD= YES + +DEPENDS+= mono-[0-9]*:../../lang/mono +DEPENDS+= libgdiplus-[0-9]*:../../graphics/libgdiplus + +FETCH_MESSAGE+= " The file ${DISTNAME}${EXTRACT_SUFX} containing ${DOWNLOAD_NAME}" +FETCH_MESSAGE+= "" +FETCH_MESSAGE+= " must be fetched into:" +FETCH_MESSAGE+= " ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}" +FETCH_MESSAGE+= " from:" +FETCH_MESSAGE+= " ${DOWNLOAD}" + +USE_TOOLS+= pax + +EGDIR= share/examples/smath-studio +DOCDIR= share/doc/smath-studio +SMATH_DIR= libexec/smath-studio +INSTALLATION_DIRS= bin ${EGDIR} ${DOCDIR} ${SMATH_DIR} + +SUBST_CLASSES+= paths +SUBST_STAGE.paths= pre-configure +SUBST_MESSAGE.paths= Fixing absolute paths. +SUBST_FILES.paths= smath-studio.sh +SUBST_VARS.paths= PREFIX SMATH_DIR + +SUBST_CLASSES+= switch +SUBST_STAGE.switch= pre-configure +SUBST_MESSAGE.switch= Disabling runtime download. +SUBST_FILES.switch= SMathStudio_Desktop.exe.config +SUBST_SED.switch= -E -e 's,(loadFromRemoteSources enabled)="true",\1="false",' + +post-extract: + find ${WRKSRC} -type f -exec chmod -x {} \; + cp ${FILESDIR}/smath-studio.sh ${WRKSRC} + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/smath-studio.sh \ + ${DESTDIR}${PREFIX}/bin/smath-studio + cd ${WRKSRC} && pax -rw EULA book ${DESTDIR}${PREFIX}/${DOCDIR}/ +.for dd in EULA book + cd ${WRKSRC} && rm -r ${dd} && \ + ln -s ${PREFIX}/${DOCDIR}/${dd} \ + ${DESTDIR}${PREFIX}/${SMATH_DIR}/${dd} +.endfor + cd ${WRKSRC} && pax -rw examples ${DESTDIR}${PREFIX}/${EGDIR}/ + cd ${WRKSRC} && rm -r examples && \ + ln -s ${PREFIX}/${EGDIR}/examples \ + ${DESTDIR}${PREFIX}/${SMATH_DIR}/examples +.for dd in SMath.*.dll SMathStudio_Desktop.exe entries lang \ + plugins representation snippets + cd ${WRKSRC} && pax -rw ${dd} ${DESTDIR}${PREFIX}/${SMATH_DIR}/ +.endfor + +.include "../../mk/bsd.pkg.mk" diff --git a/math/smath-studio/PLIST b/math/smath-studio/PLIST new file mode 100644 index 00000000000..5b20ae1e2d7 --- /dev/null +++ b/math/smath-studio/PLIST @@ -0,0 +1,131 @@ +@comment $NetBSD: PLIST,v 1.1 2021/06/29 14:28:12 hauke Exp $ +bin/smath-studio +libexec/smath-studio/EULA +libexec/smath-studio/SMath.Controls.dll +libexec/smath-studio/SMath.Drawing.dll +libexec/smath-studio/SMath.Environment.dll +libexec/smath-studio/SMath.Manager.dll +libexec/smath-studio/SMath.Math.Numeric.dll +libexec/smath-studio/SMath.Math.Symbolic.dll +libexec/smath-studio/SMath.UI.dll +libexec/smath-studio/SMathStudio_Desktop.exe +libexec/smath-studio/book +libexec/smath-studio/entries/Constants.xml +libexec/smath-studio/entries/Units.xml +libexec/smath-studio/examples +libexec/smath-studio/lang/Text_ARA.lang +libexec/smath-studio/lang/Text_BEL.lang +libexec/smath-studio/lang/Text_BEN.lang +libexec/smath-studio/lang/Text_BUL.lang +libexec/smath-studio/lang/Text_CAT.lang +libexec/smath-studio/lang/Text_CHS.lang +libexec/smath-studio/lang/Text_CHT.lang +libexec/smath-studio/lang/Text_CPP.lang +libexec/smath-studio/lang/Text_CZE.lang +libexec/smath-studio/lang/Text_DAN.lang +libexec/smath-studio/lang/Text_DUT.lang +libexec/smath-studio/lang/Text_ENG.lang +libexec/smath-studio/lang/Text_EPO.lang +libexec/smath-studio/lang/Text_FAS.lang +libexec/smath-studio/lang/Text_FIN.lang +libexec/smath-studio/lang/Text_FRE.lang +libexec/smath-studio/lang/Text_GER.lang +libexec/smath-studio/lang/Text_GRE.lang +libexec/smath-studio/lang/Text_HEB.lang +libexec/smath-studio/lang/Text_HIN.lang +libexec/smath-studio/lang/Text_HUN.lang +libexec/smath-studio/lang/Text_IND.lang +libexec/smath-studio/lang/Text_ITA.lang +libexec/smath-studio/lang/Text_JPN.lang +libexec/smath-studio/lang/Text_KOR.lang +libexec/smath-studio/lang/Text_LAV.lang +libexec/smath-studio/lang/Text_LTH.lang +libexec/smath-studio/lang/Text_NOR.lang +libexec/smath-studio/lang/Text_POL.lang +libexec/smath-studio/lang/Text_POR.lang +libexec/smath-studio/lang/Text_RON.lang +libexec/smath-studio/lang/Text_RUS.lang +libexec/smath-studio/lang/Text_SCC.lang +libexec/smath-studio/lang/Text_SCR.lang +libexec/smath-studio/lang/Text_SLK.lang +libexec/smath-studio/lang/Text_SLV.lang +libexec/smath-studio/lang/Text_SPA.lang +libexec/smath-studio/lang/Text_SRP.lang +libexec/smath-studio/lang/Text_SWA.lang +libexec/smath-studio/lang/Text_SWE.lang +libexec/smath-studio/lang/Text_THA.lang +libexec/smath-studio/lang/Text_TUR.lang +libexec/smath-studio/lang/Text_UKR.lang +libexec/smath-studio/lang/Text_VIE.lang +libexec/smath-studio/plugins/AreaRegion.dll +libexec/smath-studio/plugins/HTMLFileType.dll +libexec/smath-studio/plugins/ImageFileType.dll +libexec/smath-studio/plugins/MathRegion.dll +libexec/smath-studio/plugins/PictureRegion.dll +libexec/smath-studio/plugins/PlotRegion.dll +libexec/smath-studio/plugins/SMathFileType.dll +libexec/smath-studio/plugins/SpecialFunctions.dll +libexec/smath-studio/plugins/StandardToolboxButtons.dll +libexec/smath-studio/plugins/TextRegion.dll +libexec/smath-studio/plugins/ViewerFileType.dll +libexec/smath-studio/plugins/XMCDFileType.dll +libexec/smath-studio/representation/settings.prop +libexec/smath-studio/snippets/DegreeAngles.sm +libexec/smath-studio/snippets/GradAngles.sm +share/doc/smath-studio/EULA/SMathStudio_EULA_ENG.rtf +share/doc/smath-studio/EULA/SMathStudio_EULA_RUS.rtf +share/doc/smath-studio/book/1.sm +share/doc/smath-studio/book/10.sm +share/doc/smath-studio/book/10_1.sm +share/doc/smath-studio/book/10_2.sm +share/doc/smath-studio/book/13.sm +share/doc/smath-studio/book/13_1.sm +share/doc/smath-studio/book/13_2.sm +share/doc/smath-studio/book/16.sm +share/doc/smath-studio/book/16_4.sm +share/doc/smath-studio/book/1_1.sm +share/doc/smath-studio/book/1_2.sm +share/doc/smath-studio/book/1_3.sm +share/doc/smath-studio/book/1_5.sm +share/doc/smath-studio/book/1_7.sm +share/doc/smath-studio/book/4.sm +share/doc/smath-studio/book/4_1.sm +share/doc/smath-studio/book/4_10.sm +share/doc/smath-studio/book/4_11.sm +share/doc/smath-studio/book/4_12.sm +share/doc/smath-studio/book/4_13.sm +share/doc/smath-studio/book/4_14.sm +share/doc/smath-studio/book/4_2.sm +share/doc/smath-studio/book/4_3.sm +share/doc/smath-studio/book/4_4.sm +share/doc/smath-studio/book/4_5.sm +share/doc/smath-studio/book/4_6.sm +share/doc/smath-studio/book/4_7.sm +share/doc/smath-studio/book/4_8.sm +share/doc/smath-studio/book/4_9.sm +share/doc/smath-studio/book/5.sm +share/doc/smath-studio/book/5_1.sm +share/doc/smath-studio/book/5_2.sm +share/doc/smath-studio/book/5_3.sm +share/doc/smath-studio/book/9.sm +share/doc/smath-studio/book/9_1.sm +share/doc/smath-studio/book/9_2.sm +share/doc/smath-studio/book/contents.sm +share/examples/smath-studio/examples/Beam.sm +share/examples/smath-studio/examples/ChordMethod.sm +share/examples/smath-studio/examples/Dichotomy.sm +share/examples/smath-studio/examples/EuclideanGCD.sm +share/examples/smath-studio/examples/GravitationAcceleration.sm +share/examples/smath-studio/examples/HermitePolynomials.sm +share/examples/smath-studio/examples/Hessian.sm +share/examples/smath-studio/examples/Jacobian.sm +share/examples/smath-studio/examples/LaguerrePolynomials.sm +share/examples/smath-studio/examples/LegendrePolynomials.sm +share/examples/smath-studio/examples/MaclaurinSeries.sm +share/examples/smath-studio/examples/Newton.sm +share/examples/smath-studio/examples/PlanetaryGear.sm +share/examples/smath-studio/examples/RomanNumerals.sm +share/examples/smath-studio/examples/RungeKutta5.sm +share/examples/smath-studio/examples/Simpson.sm +share/examples/smath-studio/examples/SylvesterFormula.sm +share/examples/smath-studio/examples/Thomas.sm diff --git a/math/smath-studio/distinfo b/math/smath-studio/distinfo new file mode 100644 index 00000000000..a7bcec5eb14 --- /dev/null +++ b/math/smath-studio/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2021/06/29 14:28:12 hauke Exp $ + +SHA1 (SMathStudioDesktop.0_99_7822.Mono.tar.gz) = c67c6217ea8a7038b3ad72b04ef4a905adc9f93b +RMD160 (SMathStudioDesktop.0_99_7822.Mono.tar.gz) = f49b22f930770c104593e230835f0b97ad951433 +SHA512 (SMathStudioDesktop.0_99_7822.Mono.tar.gz) = ac86f88a13157037350b9cd33aef06daa00f8ef4eb3c4659f9d8db033963d717450305e87dfaaf79cedf834c83bf386261545d371307e18202f0b4eb817062e2 +Size (SMathStudioDesktop.0_99_7822.Mono.tar.gz) = 1544455 bytes diff --git a/math/smath-studio/files/smath-studio.sh b/math/smath-studio/files/smath-studio.sh new file mode 100644 index 00000000000..af0fb12a7a5 --- /dev/null +++ b/math/smath-studio/files/smath-studio.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# +# Start SMath Studio with mono runtime +# +# $NetBSD: smath-studio.sh,v 1.1 2021/06/29 14:28:12 hauke Exp $ + +exec @PREFIX@/bin/mono "@PREFIX@/@SMATH_DIR@/SMathStudio_Desktop.exe" "$@" |