-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from iraf-community/x11iraf-apps
Create proper apps for x11iraf
- Loading branch information
Showing
41 changed files
with
240 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" ?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>LSApplicationCategoryType</key> | ||
<string>public.app-category.education</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>community.iraf.xgterm</string> | ||
<key>CFBundleName</key> | ||
<string>XGTerm</string> | ||
<key>CFBundleDisplayName</key> | ||
<string>XGTerm</string> | ||
<key>CFBundleVersion</key> | ||
<string>2.1</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>2.1</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>1986-2014 Association of Universities for Research in Astronomy Inc.</string> | ||
<key>LSMinimumSystemVersion</key> | ||
<string>10.10</string> | ||
<key>CFBundleIconFile</key> | ||
<string>XGTerm.icns</string> | ||
<key>CFBundleExecutable</key> | ||
<string>XGTerm</string> | ||
<key>LSEnvironment</key> | ||
<dict> | ||
<key>LC_CTYPE</key> | ||
<string>UTF-8</string> | ||
</dict> | ||
</dict> | ||
</plist> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
# | ||
# XGTerm.app start script | ||
|
||
SCRIPT_DIR=$(dirname -- "${0}") | ||
CONTENT_DIR=$(dirname -- "${SCRIPT_DIR}") | ||
RESOURCES_DIR=$(dirname -- "${SCRIPT_DIR}")/Resources | ||
APP_DIR=$(dirname -- "${CONTENT_DIR}") | ||
APP_NAME=$(echo $(basename -- "$APP_DIR") | sed 's/\.app$//') | ||
|
||
function xquartz_error() { | ||
osascript <<EOT | ||
set theCaption to "XQuartz required but not found" | ||
set theMessage to "Please install it and re-login before running $0." | ||
display alert theCaption message theMessage as critical buttons {"Quit", "XQuartz website"} | ||
set response to button returned of the result | ||
if response is "XQuartz website" then open location "https://xquartz.org" | ||
EOT | ||
} | ||
|
||
if [ -z "${DISPLAY}" ] ; then | ||
xquartz_error "${APP_NAME}" | ||
exit 1 | ||
fi | ||
|
||
# Simple dummy X command to wait until the X server is up | ||
xprop -root > /dev/null | ||
|
||
cd "${HOME}" | ||
export TERMINFO=${RESOURCES_DIR}/terminfo | ||
${RESOURCES_DIR}/bin/xgterm -title "${APP_NAME}" -ls & |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
13 changes: 7 additions & 6 deletions
13
...-setting-of-local-terminfo-database.patch → ...-setting-of-local-terminfo-database.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
From 0bb53427cf4b80671fe1279bb355d4130d62b4d8 Mon Sep 17 00:00:00 2001 | ||
From 188e45d953a60164a1b22512191678de933e7729 Mon Sep 17 00:00:00 2001 | ||
From: Ole Streicher <[email protected]> | ||
Date: Fri, 15 Mar 2024 15:44:54 +0100 | ||
Subject: [PATCH] Force setting of local terminfo database | ||
|
||
--- | ||
xgterm/main.c | 1 + | ||
1 file changed, 1 insertion(+) | ||
xgterm/main.c | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/xgterm/main.c b/xgterm/main.c | ||
index 2ec1437..7d4cd10 100644 | ||
index 2ec1437..2817d8c 100644 | ||
--- a/xgterm/main.c | ||
+++ b/xgterm/main.c | ||
@@ -1026,6 +1026,7 @@ char **argv; | ||
@@ -1026,6 +1026,8 @@ char **argv; | ||
#ifdef I18N | ||
setlocale(LC_ALL, NULL); | ||
#endif | ||
+ putenv("TERMINFO=/usr/local/share/terminfo"); | ||
+ if (getenv("TERMINFO") == NULL) | ||
+ putenv("TERMINFO=/usr/local/share/terminfo"); | ||
|
||
ProgramName = argv[0]; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
#$0 = returns the path to the script | ||
#$1 = returns the path to the package | ||
#$2 = returns the target location (for example: /Applications) | ||
#$3 = returns the target volume (for example: /Volumes/Macintosh HD) | ||
|
||
APP_PATH=$2 | ||
|
||
# Link the binaries, the manpages, and the terminfo file | ||
mkdir -p /usr/local/bin/ /usr/local/share/man/man1/ /usr/local/share/terminfo/78 | ||
|
||
XGTERM_PATH=${APP_PATH}/XGTerm.app/Contents/Resources | ||
rm -f /usr/local/bin/xgterm /usr/local/share/man/man1/xgterm.1 /usr/local/share/terminfo/78/xgterm | ||
ln -s ${XGTERM_PATH}/bin/xgterm /usr/local/bin/ | ||
ln -s ${XGTERM_PATH}/man/xgterm.1 /usr/local/share/man/man1/ | ||
ln -s ${XGTERM_PATH}/terminfo/78/xgterm /usr/local/share/terminfo/78/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" ?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>LSApplicationCategoryType</key> | ||
<string>public.app-category.education</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>community.iraf.ximtool</string> | ||
<key>CFBundleName</key> | ||
<string>XImtool</string> | ||
<key>CFBundleDisplayName</key> | ||
<string>XImtool</string> | ||
<key>CFBundleVersion</key> | ||
<string>2.1</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>2.1</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>1986-2014 Association of Universities for Research in Astronomy Inc.</string> | ||
<key>LSMinimumSystemVersion</key> | ||
<string>10.10</string> | ||
<key>CFBundleIconFile</key> | ||
<string>XImtool.icns</string> | ||
<key>CFBundleExecutable</key> | ||
<string>XImtool</string> | ||
<key>LSEnvironment</key> | ||
<dict> | ||
<key>LC_CTYPE</key> | ||
<string>UTF-8</string> | ||
</dict> | ||
</dict> | ||
</plist> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh | ||
# | ||
# XImtool.app start script | ||
|
||
SCRIPT_DIR=$(dirname -- "${0}") | ||
CONTENT_DIR=$(dirname -- "${SCRIPT_DIR}") | ||
RESOURCES_DIR=$(dirname -- "${SCRIPT_DIR}")/Resources | ||
APP_DIR=$(dirname -- "${CONTENT_DIR}") | ||
APP_NAME=$(echo $(basename -- "$APP_DIR") | sed 's/\.app$//') | ||
|
||
function xquartz_error() { | ||
osascript <<EOT | ||
set theCaption to "XQuartz required but not found" | ||
set theMessage to "Please install it and re-login before running $0." | ||
display alert theCaption message theMessage as critical buttons {"Quit", "XQuartz website"} | ||
set response to button returned of the result | ||
if response is "XQuartz website" then open location "https://xquartz.org" | ||
EOT | ||
} | ||
|
||
if [ -z "${DISPLAY}" ] ; then | ||
xquartz_error "${APP_NAME}" | ||
exit 1 | ||
fi | ||
|
||
# Simple dummy X command to wait until the X server is up | ||
xprop -root > /dev/null | ||
|
||
# Add local bin dir to path so that ism_wcspix.e can be found and started | ||
export PATH=${PATH}:${RESOURCES_DIR}/bin | ||
|
||
cd "${HOME}" | ||
${RESOURCES_DIR}/bin/ximtool & |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
#$0 = returns the path to the script | ||
#$1 = returns the path to the package | ||
#$2 = returns the target location (for example: /Applications) | ||
#$3 = returns the target volume (for example: /Volumes/Macintosh HD) | ||
|
||
APP_PATH=$2 | ||
|
||
# Link the binaries, the manpages | ||
mkdir -p /usr/local/bin/ /usr/local/share/man/man1/ | ||
|
||
XIMTOOL_PATH=${APP_PATH}/XImtool.app/Contents/Resources | ||
rm -f /usr/local/bin/ximtool /usr/local/share/man/man1/ximtool.1 | ||
ln -s ${XIMTOOL_PATH}/bin/ximtool /usr/local/bin/ | ||
ln -s ${XIMTOOL_PATH}/bin/ism_wcspix.e /usr/local/bin/ | ||
ln -s ${XIMTOOL_PATH}/man/ximtool.1 /usr/local/share/man/man1/ |