Skip to content

Commit

Permalink
lang/pharo: update to 10.0.8
Browse files Browse the repository at this point in the history
PR:		274973
Reported by:	dziltener@lyrion.ch
  • Loading branch information
zilti authored and Fernando Apesteguía committed Nov 24, 2023
1 parent b789b0c commit 0f02c64
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 27 deletions.
56 changes: 33 additions & 23 deletions lang/pharo/Makefile
@@ -1,37 +1,47 @@
PORTNAME= pharo
DISTVERSION= 1.4
PORTREVISION= 3
DISTVERSION= 10.0.9
DISTVERSIONSUFFIX= de76067
CATEGORIES= lang
MASTER_SITES= https://gforge.inria.fr/frs/download.php/30620/
DISTNAME= Pharo-${DISTVERSION}-${SVNVERSION}
EXTRACT_ONLY= Pharo-${DISTVERSION}-${SVNVERSION}.zip
MASTER_SITES= http://files.pharo.org/vm/pharo-spur64-headless/Linux-x86_64/source/
DISTNAME= PharoVM-${DISTVERSION}-${DISTVERSIONSUFFIX}-Linux-x86_64-c-src

MAINTAINER= ports@FreeBSD.org
COMMENT= Smalltalk-inspired language and environment
WWW= http://www.pharo-project.org/
WWW= http://www.pharo.org/

LICENSE= APACHE20 MIT
LICENSE_COMB= multi
LICENSE= MIT

RUN_DEPENDS= squeak:lang/squeak
LIB_DEPENDS= libffi.so:devel/libffi \
libgit2.so:devel/libgit2 \
libcairo.so:graphics/cairo \
libfreetype.so:print/freetype2 \
libssl.so:security/openssl \
libpixman-1.so:x11/pixman \
libpng.so:graphics/png \
libuuid.so:misc/e2fsprogs-libuuid

SVNVERSION= 14438
USES= cmake
CMAKE_ARGS= -DFLAVOUR=CoInterpreter \
-DPHARO_BIN_LOCATION=${PREFIX}/libexec/pharo10 \
-DGENERATED_SOURCE_DIR=.
CMAKE_ON= ALWAYS_INTERACTIVE BUILD_IS_RELEASE
CMAKE_OFF= GENERATE_SOURCES BUILD_BUNDLE

NO_BUILD= yes
USES= zip
WRKSRC= ${WRKDIR}/pharo-vm

DIST_SUBDIR= squeak

FILES_DIR= ${WRKDIR}/Pharo-${DISTVERSION}-${SVNVERSION}/
FILES_TO_INSTALL=Pharo-${DISTVERSION}.image \
Pharo-${DISTVERSION}.changes \
PharoV10.sources
PLIST_FILES= lib/squeak/Pharo-${DISTVERSION}.image \
lib/squeak/Pharo-${DISTVERSION}.changes \
lib/squeak/PharoV10.sources
USE_HCC= yes
USE_SDL= sdl image

do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/squeak
${INSTALL_DATA} ${FILES_TO_INSTALL:S,^,${FILES_DIR}/,} ${STAGEDIR}${PREFIX}/lib/squeak
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/pharo10
${MKDIR} ${STAGEDIR}${PREFIX}/lib/pharo10
cd ${WRKDIR}/.build/build/packaging/linux/bin && \
${INSTALL_SCRIPT} pharo ${STAGEDIR}${PREFIX}/bin/pharo10
cd ${WRKDIR}/.build/build/vm && \
${INSTALL_PROGRAM} pharo ${STAGEDIR}${PREFIX}/libexec/pharo10/pharo
cd ${WRKDIR}/.build/build/vm && \
${FIND} . -type f -name "*.so" | while read file; do \
${INSTALL_LIB} $$file ${STAGEDIR}${PREFIX}/lib/pharo10/$$file; \
done

.include <bsd.port.mk>
5 changes: 3 additions & 2 deletions lang/pharo/distinfo
@@ -1,2 +1,3 @@
SHA256 (squeak/Pharo-1.4-14438.zip) = 7f1a3fa43f44f3f4d05955cd1b1191abcdb8f3ee9692eeb55d67ef0122324f1d
SIZE (squeak/Pharo-1.4-14438.zip) = 13324537
TIMESTAMP = 1700701195
SHA256 (PharoVM-10.0.9-de76067-Linux-x86_64-c-src.tar.gz) = e797b3b00be38fbd158ffba732d175307fe9928421529e1f5b96a9e553f018bf
SIZE (PharoVM-10.0.9-de76067-Linux-x86_64-c-src.tar.gz) = 3875300
18 changes: 18 additions & 0 deletions lang/pharo/files/patch-packaging_linux_bin_launch.sh.in
@@ -0,0 +1,18 @@
--- packaging/linux/bin/launch.sh.in.orig 2023-11-23 00:48:34 UTC
+++ packaging/linux/bin/launch.sh.in
@@ -27,13 +27,13 @@ fi
# and so it should take precedence over /lib libc. This is done by setting
# LD_LIBRARY_PATH appropriately, based on ldd's idea of the libc use by the VM.
#Try extracting Libc
-LIBC_SO="`/usr/bin/ldd "$BIN/@VM_EXECUTABLE_NAME@" | /bin/fgrep /libc. | sed 's/^.*=> \([^ ]*\).*/\1/'`"
+LIBC_SO="`ldd "$BIN/@VM_EXECUTABLE_NAME@" | grep /libc. | sed 's/^.*=> \([^ ]*\).*/\1/'`"
PLATFORMLIBDIR=`expr "$LIBC_SO" : '\(.*\)/libc.*'`

#If empty try extracting Musl
if [ "$PLATFORMLIBDIR" = "" ]; then
{
- LIBC_SO="`/usr/bin/ldd "$BIN/@VM_EXECUTABLE_NAME@" | /bin/fgrep libc. | sed 's/^.*=> \([^ ]*\).*/\1/'`"
+ LIBC_SO="`ldd "$BIN/@VM_EXECUTABLE_NAME@" | grep libc. | sed 's/^.*=> \([^ ]*\).*/\1/'`"
PLATFORMLIBDIR=`expr "$LIBC_SO" : '\(.*\)/ld-musl.*'`
}
fi
2 changes: 0 additions & 2 deletions lang/pharo/pkg-descr
Expand Up @@ -5,5 +5,3 @@ Pharo is a clean, innovative, open-source Smalltalk-inspired environment.
- a clean look and feel
- good developer tools
- low memory footprint

It runs under squeak virtual machine.
20 changes: 20 additions & 0 deletions lang/pharo/pkg-plist
@@ -0,0 +1,20 @@
bin/pharo10
lib/pharo10/libB2DPlugin.so
lib/pharo10/libBitBltPlugin.so
lib/pharo10/libDSAPrims.so
lib/pharo10/libFileAttributesPlugin.so
lib/pharo10/libFilePlugin.so
lib/pharo10/libFloatArrayPlugin.so
lib/pharo10/libJPEGReadWriter2Plugin.so
lib/pharo10/libJPEGReaderPlugin.so
lib/pharo10/libLargeIntegers.so
lib/pharo10/libLocalePlugin.so
lib/pharo10/libMiscPrimitivePlugin.so
lib/pharo10/libPharoVMCore.so
lib/pharo10/libSocketPlugin.so
lib/pharo10/libSqueakSSL.so
lib/pharo10/libSurfacePlugin.so
lib/pharo10/libTestLibrary.so
lib/pharo10/libUUIDPlugin.so
lib/pharo10/libUnixOSProcessPlugin.so
libexec/pharo10/pharo

0 comments on commit 0f02c64

Please sign in to comment.