diff options
-rw-r--r-- | freebsd/distinfo | 3 | ||||
-rw-r--r-- | freebsd/files/pkg-message.in | 2 | ||||
-rw-r--r-- | freebsd/pkg-descr | 5 | ||||
-rw-r--r-- | freebsd/pkg-plist | 108 | ||||
-rwxr-xr-x | freebsd/xvfb-run.sh | 118 |
5 files changed, 236 insertions, 0 deletions
diff --git a/freebsd/distinfo b/freebsd/distinfo new file mode 100644 index 0000000..8cfcc5f --- /dev/null +++ b/freebsd/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1687207470 +SHA256 (sciteco-2.0.0.tar.gz) = bae4ea4bdeae04bf74928b6f6802dd3df5ecc4c218e10d0552451fd52c95ac9d +SIZE (sciteco-2.0.0.tar.gz) = 3780369 diff --git a/freebsd/files/pkg-message.in b/freebsd/files/pkg-message.in new file mode 100644 index 0000000..33028bb --- /dev/null +++ b/freebsd/files/pkg-message.in @@ -0,0 +1,2 @@ +You are recommended to copy %%DATADIR%%/sample.teco_ini to ~/.teco_ini +and edit this file afterwards with SciTECO. diff --git a/freebsd/pkg-descr b/freebsd/pkg-descr new file mode 100644 index 0000000..530d978 --- /dev/null +++ b/freebsd/pkg-descr @@ -0,0 +1,5 @@ +SciTECO is an interactive TECO dialect, similar to Video TECO. +It also adds features from classic Standard TECO-11, +and incorporates many unique new ideas. +It is geared towards UNIX-like operating systems but also +natively supports Microsoft Windows NT. diff --git a/freebsd/pkg-plist b/freebsd/pkg-plist new file mode 100644 index 0000000..c200eea --- /dev/null +++ b/freebsd/pkg-plist @@ -0,0 +1,108 @@ +bin/%%PROGRAM_PREFIX%%grosciteco.tes +bin/%%PROGRAM_PREFIX%%sciteco +bin/%%PROGRAM_PREFIX%%tedoc.tes +man/man1/%%PROGRAM_PREFIX%%grosciteco.tes.1.gz +man/man1/%%PROGRAM_PREFIX%%sciteco.1.gz +man/man1/%%PROGRAM_PREFIX%%tedoc.tes.1.gz +man/man7/%%PROGRAM_PREFIX%%sciteco.7.gz +%%DATADIR%%/lib/color.tes +%%DATADIR%%/lib/colors/solarized.tes +%%DATADIR%%/lib/colors/terminal.tes +%%DATADIR%%/lib/fnkeys.tes +%%DATADIR%%/lib/getopt.tes +%%DATADIR%%/lib/lexer.tes +%%DATADIR%%/lib/lexers/abaqus.tes +%%DATADIR%%/lib/lexers/ada.tes +%%DATADIR%%/lib/lexers/asciidoc.tes +%%DATADIR%%/lib/lexers/asl.tes +%%DATADIR%%/lib/lexers/asm.tes +%%DATADIR%%/lib/lexers/ave.tes +%%DATADIR%%/lib/lexers/avs.tes +%%DATADIR%%/lib/lexers/awk.tes +%%DATADIR%%/lib/lexers/baan.tes +%%DATADIR%%/lib/lexers/bash.tes +%%DATADIR%%/lib/lexers/batch.tes +%%DATADIR%%/lib/lexers/blitzbasic.tes +%%DATADIR%%/lib/lexers/c.tes +%%DATADIR%%/lib/lexers/caml.tes +%%DATADIR%%/lib/lexers/ch.tes +%%DATADIR%%/lib/lexers/cmake.tes +%%DATADIR%%/lib/lexers/cobol.tes +%%DATADIR%%/lib/lexers/cpp.tes +%%DATADIR%%/lib/lexers/cs.tes +%%DATADIR%%/lib/lexers/d.tes +%%DATADIR%%/lib/lexers/devicetree.tes +%%DATADIR%%/lib/lexers/diff.tes +%%DATADIR%%/lib/lexers/docbook.tes +%%DATADIR%%/lib/lexers/eiffel.tes +%%DATADIR%%/lib/lexers/f77.tes +%%DATADIR%%/lib/lexers/f95.tes +%%DATADIR%%/lib/lexers/flagship.tes +%%DATADIR%%/lib/lexers/flash.tes +%%DATADIR%%/lib/lexers/freebasic.tes +%%DATADIR%%/lib/lexers/gap.tes +%%DATADIR%%/lib/lexers/go.tes +%%DATADIR%%/lib/lexers/gob.tes +%%DATADIR%%/lib/lexers/html.tes +%%DATADIR%%/lib/lexers/idl.tes +%%DATADIR%%/lib/lexers/inno.tes +%%DATADIR%%/lib/lexers/java.tes +%%DATADIR%%/lib/lexers/js.tes +%%DATADIR%%/lib/lexers/kix.tes +%%DATADIR%%/lib/lexers/lisp.tes +%%DATADIR%%/lib/lexers/lout.tes +%%DATADIR%%/lib/lexers/lua.tes +%%DATADIR%%/lib/lexers/make.tes +%%DATADIR%%/lib/lexers/mako.tes +%%DATADIR%%/lib/lexers/markdown.tes +%%DATADIR%%/lib/lexers/matlab.tes +%%DATADIR%%/lib/lexers/mmixal.tes +%%DATADIR%%/lib/lexers/octave.tes +%%DATADIR%%/lib/lexers/oscript.tes +%%DATADIR%%/lib/lexers/pascal.tes +%%DATADIR%%/lib/lexers/perl.tes +%%DATADIR%%/lib/lexers/php.tes +%%DATADIR%%/lib/lexers/pike.tes +%%DATADIR%%/lib/lexers/pov.tes +%%DATADIR%%/lib/lexers/powerpro.tes +%%DATADIR%%/lib/lexers/purebasic.tes +%%DATADIR%%/lib/lexers/python.tes +%%DATADIR%%/lib/lexers/r.tes +%%DATADIR%%/lib/lexers/rc.tes +%%DATADIR%%/lib/lexers/rebol.tes +%%DATADIR%%/lib/lexers/rust.tes +%%DATADIR%%/lib/lexers/scheme.tes +%%DATADIR%%/lib/lexers/specman.tes +%%DATADIR%%/lib/lexers/spice.tes +%%DATADIR%%/lib/lexers/swift.tes +%%DATADIR%%/lib/lexers/systemverilog.tes +%%DATADIR%%/lib/lexers/tacl.tes +%%DATADIR%%/lib/lexers/tal.tes +%%DATADIR%%/lib/lexers/tcl.tes +%%DATADIR%%/lib/lexers/test.tes +%%DATADIR%%/lib/lexers/vala.tes +%%DATADIR%%/lib/lexers/vb.tes +%%DATADIR%%/lib/lexers/verilog.tes +%%DATADIR%%/lib/lexers/vhdl.tes +%%DATADIR%%/lib/lexers/vxml.tes +%%DATADIR%%/lib/lexers/woman.tes +%%DATADIR%%/lib/lexers/xml.tes +%%DATADIR%%/lib/lexers/yaml.tes +%%DATADIR%%/lib/session.tes +%%DATADIR%%/lib/string.tes +%%DATADIR%%/lib/women/grosciteco.tes.1.woman +%%DATADIR%%/lib/women/grosciteco.tes.1.woman.tec +%%DATADIR%%/lib/women/sciteco.1.woman +%%DATADIR%%/lib/women/sciteco.1.woman.tec +%%DATADIR%%/lib/women/sciteco.7.woman +%%DATADIR%%/lib/women/sciteco.7.woman.tec +%%DATADIR%%/lib/women/tedoc.tes.1.woman +%%DATADIR%%/lib/women/tedoc.tes.1.woman.tec +%%DATADIR%%/sample.teco_ini +%%DATADIR%%/sciteco.tmac +%%GTK%%%%DATADIR%%/fallback.css +%%GTK%%share/icons/hicolor/16x16/apps/sciteco.png +%%GTK%%share/icons/hicolor/32x32/apps/sciteco.png +%%GTK%%share/icons/hicolor/48x48/apps/sciteco.png +%%GTK%%share/icons/hicolor/256x256/apps/sciteco.png +%%GTK%%share/applications/sciteco.desktop diff --git a/freebsd/xvfb-run.sh b/freebsd/xvfb-run.sh new file mode 100755 index 0000000..b4fd5a0 --- /dev/null +++ b/freebsd/xvfb-run.sh @@ -0,0 +1,118 @@ +#!/bin/sh +# --- T2-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# T2 SDE: package/.../xorg-server/xvfb-run.sh +# Copyright (C) 2005 The T2 SDE Project +# Copyright (C) XXXX - 2005 Debian +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- T2-COPYRIGHT-NOTE-END --- + +# $Id: xvfb-run 2166 2005-01-27 07:54:19Z branden $ +# from: http://necrotic.deadbeast.net/xsf/XFree86/trunk/debian/local/xvfb-run + +# This script starts an instance of Xvfb, the "fake" X server, runs a command +# with that server available, and kills the X server when done. The return +# value of the command becomes the return value of this script. +# +# If anyone is using this to build a Debian package, make sure the package +# Build-Depends on xvfb, xbase-clients, and xfonts-base. +# +# This script has been modified by Robin Haberkorn to remove dependencies on +# GNU `fmt` and `getopt` for BSD compatibility. + +set -e + +PROGNAME=xvfb-run +SERVERNUM=99 +AUTHFILE= +ERRORFILE=/dev/null +STARTWAIT=3 +XVFBARGS="-screen 0 640x480x8" +LISTENTCP="-nolisten tcp" +XAUTHPROTO=. + +# Display a message, wrapping lines at the terminal width. +message () { + echo "$PROGNAME: $*" | fmt +} + +# Display an error message. +error () { + message "error: $*" >&2 +} + +# Find a free server number by looking at .X*-lock files in /tmp. +find_free_servernum() { + # Sadly, the "local" keyword is not POSIX. Leave the next line commented in + # the hope Debian Policy eventually changes to allow it in /bin/sh scripts + # anyway. + #local i + + i=$SERVERNUM + while [ -f /tmp/.X$i-lock ]; do + i=$(($i + 1)) + done + echo $i +} + +SERVERNUM=$(find_free_servernum) + +if [ -z "$*" ]; then + error "need a command to run" + exit 2 +fi + +if ! which xauth >/dev/null; then + error "xauth command not found" + exit 3 +fi + +# If the user did not specify an X authorization file to use, set up a temporary +# directory to house one. +if [ -z "$AUTHFILE" ]; then + XVFB_RUN_TMPDIR="${TMPDIR:-/tmp}/$PROGNAME.$$" + if ! mkdir -p -m 700 "$XVFB_RUN_TMPDIR"; then + error "temporary directory $XVFB_RUN_TMPDIR already exists" + exit 4 + fi + AUTHFILE=$(mktemp -p "$XVFB_RUN_TMPDIR" Xauthority) +fi + +# Start Xvfb. +MCOOKIE=$(mcookie) +XAUTHORITY=$AUTHFILE xauth add ":$SERVERNUM" "$XAUTHPROTO" "$MCOOKIE" \ + >"$ERRORFILE" 2>&1 +XAUTHORITY=$AUTHFILE Xvfb ":$SERVERNUM" $XVFBARGS $LISTENTCP >"$ERRORFILE" \ + 2>&1 & +XVFBPID=$! +sleep "$STARTWAIT" + +# Start the command and save its exit status. +set +e +DISPLAY=:$SERVERNUM XAUTHORITY=$AUTHFILE "$@" 2>&1 +RETVAL=$? +set -e + +# Kill Xvfb now that the command has exited. +kill $XVFBPID + +# Clean up. +XAUTHORITY=$AUTHFILE xauth remove ":$SERVERNUM" >"$ERRORFILE" 2>&1 +if [ -n "$XVFB_RUN_TMPDIR" ]; then + if ! rm -r "$XVFB_RUN_TMPDIR"; then + error "problem while cleaning up temporary directory" + exit 5 + fi +fi + +# Return the executed command's exit status. +exit $RETVAL + +# vim:set ai et sts=4 sw=4 tw=80: |