Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into Cog
  • Loading branch information
eliotmiranda committed Mar 25, 2019
2 parents e514459 + 8d0fe14 commit 4e1be2c
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 27 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
*.sources
*.swp

# Mac
.DS_Store

# /
/ChangeHistory
/MVALOG
Expand Down
3 changes: 2 additions & 1 deletion deploy/packaging/Makefile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ build_srcpackage:
cp -a $(BASE_DIR)/spursrc $(BASE_DIR)/spur64src $(BASE_DIR)/platforms $(BASE_DIR)/LICENSE $(BASE_DIR)/mkNamedPrims.sh $(BASE_DIR)/src pharo7-vm-core/
mkdir -p pharo7-vm-core/build.linux32x86/
cp -a $(BASE_DIR)/build.linux32x86/pharo.cog.spur pharo7-vm-core/build.linux32x86/
cp -a $(BASE_DIR)/build.linux32x86/editpharoinstall.sh pharo7-vm-core/build.linux32x86/
cp -a editpharoinstall.sh pharo7-vm-core/build.linux32x86/

cd $(BASE_DIR) && ./scripts/updateSCCSVersions
cd pharo7-vm-core/platforms/unix/config && make configure
cd pharo7-vm-core && dpkg-buildpackage -S -uc -us -d

Expand Down
20 changes: 20 additions & 0 deletions deploy/packaging/editpharoinstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -e
# Edit the installed directory tree to rename squeak to pharo and install source

INSTALLDIR="$1"
shift
cd $INSTALLDIR

if [ -f squeak ]; then
mv squeak pharo
sed -i 's/squeak/pharo/g' pharo
fi
if [ -f bin/squeak ]; then
mv bin/squeak bin/pharo
sed -i 's/squeak/pharo/g' bin/pharo
fi
rm -rf man doc
LIBDIR="`echo lib/squeak/[0-9.-]*`"
test -f $LIBDIR/squeak && mv $LIBDIR/squeak $LIBDIR/pharo
test -d lib/squeak && mv lib/squeak lib/pharo
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
Name: pharo7-ui-common
Version: 1
Release: 1%{?dist}
Summary: Pharo6 VM
Summary: Pharo7 VM

Group: VM
License: MIT
URL: http://www.pharo.org
Source0: DEB_VERSION

#BuildRequires: libmpeg3-devel
BuildRequires: pharo7-sources-files
BuildRequires: pharo6-sources-files
BuildRequires: SDL-devel
BuildRequires: openssl-devel
%if 0%{?suse_version}
BuildRequires: libpulse-devel
BuildRequires: freetype2-devel
BuildRequires: -post-build-checks
%else
BuildRequires: pulseaudio-libs-devel
BuildRequires: freetype-devel
Expand All @@ -40,12 +41,12 @@ Requires: bash
%endif

%description
Pharo6 VM common files shared between the 32bit and 64bit flavor.
Pharo7 VM common files shared between the 32bit and 64bit flavor.
It will be installed automatically.

%ifarch x86_64
%package -n pharo7-64
Summary: Pharo6 VM for 64bit
Summary: Pharo7 VM for 64bit
%description -n pharo7-64
Description: Clean and innovative Smalltalk-inspired environment.
Pharo's goal is to deliver a clean, innovative, free open-source
Expand All @@ -54,7 +55,7 @@ system, excellent dev tools, and maintained releases, Pharo is an
attractive platform to build and deploy mission critical applications.

%package -n pharo7-64-ui
Summary: Pharo6 VM for 64bit with UI
Summary: Pharo7 VM for 64bit with UI
Requires: pharo7-64 pharo7-ui-common
%description -n pharo7-64-ui
Description: Clean and innovative Smalltalk-inspired environment.
Expand All @@ -68,7 +69,7 @@ Installs the 64bit pharo7 VM with GUI support.
%endif
%ifarch %{ix86}
%package -n pharo7-32
Summary: Pharo6 VM for 32bit
Summary: Pharo7 VM for 32bit
%description -n pharo7-32
Description: Clean and innovative Smalltalk-inspired environment.
Pharo's goal is to deliver a clean, innovative, free open-source
Expand All @@ -77,7 +78,7 @@ system, excellent dev tools, and maintained releases, Pharo is an
attractive platform to build and deploy mission critical applications.

%package -n pharo7-32-ui
Summary: Pharo6 VM for 32bit with UI
Summary: Pharo7 VM for 32bit with UI
Requires: pharo7-32 pharo7-ui-common
%description -n pharo7-32-ui
Description: Clean and innovative Smalltalk-inspired environment.
Expand Down Expand Up @@ -125,8 +126,9 @@ rm %{?buildroot}/usr/bin/pharo7-32*
rm %{?buildroot}%{_datadir}/applications/pharo7-32-ui.desktop
rm %{?buildroot}%{_datadir}/man/man1/pharo7-32.1
mv %{?buildroot}/usr/lib64/squeak/*/* %{?buildroot}/usr/lib64/pharo7-vm/
rm %{?buildroot}/usr/lib64/pharo7-vm/*.a
mv %{?buildroot}/usr/lib64/pharo7-vm/squeak %{?buildroot}/usr/lib64/pharo7-vm/pharo
ln -s /usr/share/pharo7-vm/PharoV60.sources %{?buildroot}/usr/lib64/pharo7-vm/
ln -s /usr/share/pharo6-vm/PharoV60.sources %{?buildroot}/usr/lib64/pharo7-vm/
sed -i s,lib/x86_64-linux-gnu,lib64, %{?buildroot}/usr/bin/*
%endif

Expand All @@ -137,25 +139,26 @@ rm %{?buildroot}/usr/bin/pharo7-64*
rm %{?buildroot}%{_datadir}/applications/pharo7-64-ui.desktop
rm %{?buildroot}%{_datadir}/man/man1/pharo7-64.1
mv %{?buildroot}/usr/lib/squeak/*/* %{?buildroot}/usr/lib/pharo7-vm/
rm %{?buildroot}/usr/lib/pharo7-vm/*.a
mv %{?buildroot}/usr/lib/pharo7-vm/squeak %{?buildroot}/usr/lib/pharo7-vm/pharo
ln -s /usr/share/pharo7-vm/PharoV60.sources %{?buildroot}/usr/lib/pharo7-vm/
ln -s /usr/share/pharo6-vm/PharoV60.sources %{?buildroot}/usr/lib/pharo7-vm/
sed -i s,lib/i386-linux-gnu,lib, %{?buildroot}/usr/bin/*
%endif


%files
%doc

%files
%{_datadir}/icons
%{_datadir}/mime

%ifarch x86_64
%files -n pharo7-64
%dir %{_libdir}/pharo7-vm
%{_bindir}/pharo7-64
%{_libdir}/pharo7-vm/pharo
%{_libdir}/pharo7-vm/AioPlugin.so
%{_libdir}/pharo7-vm/EventsHandlerPlugin.so
%{_libdir}/pharo7-vm/FileAttributesPlugin.so
%{_libdir}/pharo7-vm/FT2Plugin.so
%{_libdir}/pharo7-vm/InternetConfigPlugin.so
%{_libdir}/pharo7-vm/JPEGReadWriter2Plugin.so
Expand All @@ -169,6 +172,7 @@ sed -i s,lib/i386-linux-gnu,lib, %{?buildroot}/usr/bin/*
%{_mandir}/man1/pharo7-64.1.gz

%files -n pharo7-64-ui
%dir %{_libdir}/pharo7-vm
%{_bindir}/pharo7-64-ui
%{_libdir}/pharo7-vm/B3DAcceleratorPlugin.so
%{_libdir}/pharo7-vm/vm-display-X11.so
Expand All @@ -181,10 +185,12 @@ sed -i s,lib/i386-linux-gnu,lib, %{?buildroot}/usr/bin/*

%ifarch %{ix86}
%files -n pharo7-32
%dir %{_libdir}/pharo7-vm
%{_bindir}/pharo7-32
%{_libdir}/pharo7-vm/pharo
%{_libdir}/pharo7-vm/AioPlugin.so
%{_libdir}/pharo7-vm/EventsHandlerPlugin.so
%{_libdir}/pharo7-vm/FileAttributesPlugin.so
%{_libdir}/pharo7-vm/FT2Plugin.so
%{_libdir}/pharo7-vm/InternetConfigPlugin.so
%{_libdir}/pharo7-vm/JPEGReadWriter2Plugin.so
Expand All @@ -198,6 +204,7 @@ sed -i s,lib/i386-linux-gnu,lib, %{?buildroot}/usr/bin/*
%{_mandir}/man1/pharo7-32.1.gz

%files -n pharo7-32-ui
%dir %{_libdir}/pharo7-vm
%{_bindir}/pharo7-32-ui
%{_libdir}/pharo7-vm/B3DAcceleratorPlugin.so
%{_libdir}/pharo7-vm/vm-display-X11.so
Expand Down
23 changes: 8 additions & 15 deletions platforms/iOS/vm/OSX/sqSqueakOSXOpenGLView.m
Original file line number Diff line number Diff line change
Expand Up @@ -1114,27 +1114,20 @@ - (void) clearScreen {

- (void) ioSetFullScreen: (sqInt) fullScreen {

if ([self isInFullScreenMode] == YES && (fullScreen == 1))
if ((self.window.styleMask & NSFullScreenWindowMask) && (fullScreen == 1))
return;
if ([self isInFullScreenMode] == NO && (fullScreen == 0))
if (!(self.window.styleMask & NSFullScreenWindowMask) && (fullScreen == 0))
return;

if ([self isInFullScreenMode] == NO && (fullScreen == 1)) {
self.fullScreenInProgress = YES;
NSDictionary* options = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt:
NSApplicationPresentationHideDock |
NSApplicationPresentationHideMenuBar ],
NSFullScreenModeApplicationPresentationOptions, nil];
[self enterFullScreenMode:[NSScreen mainScreen] withOptions:options];
if (!(self.window.styleMask & NSFullScreenWindowMask) && (fullScreen == 1)) {
self.fullScreenInProgress = YES;

[self.window toggleFullScreen: nil];
}

if ([self isInFullScreenMode] == YES && (fullScreen == 0)) {
if ((self.window.styleMask & NSFullScreenWindowMask) && (fullScreen == 0)) {
self.fullScreenInProgress = YES;
[self exitFullScreenModeWithOptions: NULL];
if ([self.window isKeyWindow] == NO) {
[self.window makeKeyAndOrderFront: self];
}
[self.window toggleFullScreen: nil];
}
}

Expand Down

0 comments on commit 4e1be2c

Please sign in to comment.