A simple text editor for the X on TkStep.

PR:		11423
Submitted by:	KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
This commit is contained in:
Satoshi Taoka 1999-05-06 13:39:52 +00:00
parent 07d7c1719b
commit 78d6c8b87a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=18547
6 changed files with 157 additions and 0 deletions

48
editors/muggy/Makefile Normal file
View File

@ -0,0 +1,48 @@
# New ports collection makefile for: Muggy
# Version required: 1.2b
# Date created: 25 March 1999
# Whom: KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
#
# $Id$
#
DISTNAME= Muggy-1.2b
PKGNAME= ${LANGPREFIX}muggy-1.2b
CATEGORIES= ${CATEGORY_LIST}
MASTER_SITES= http://www.aaa-int.or.jp/~jfactory/JDE/dist/
MAINTAINER= kiri@pis.toba-cmt.ac.jp
RUN_DEPENDS= ${RUN_DEP_LIST}
EXTRACT_ONLY= # extracted directly in install target
NO_WRKSUBDIR= yes
NO_BUILD= yes
USE_X_PREFIX= yes
SCRIPTS_ENV= LANG=C LN=${LN} PERL=${PERL} LANGUAGE=${LANGUAGE} VERSION=${TKSTEPVERSION}
PLIST_SUB= PIXMAP_PATH=${PIXMAPPATH:S@^${PREFIX}/@@}
# This port is for both editors/muggy and japanese/muggy.
# But editors/muggy and japanese/muggy are mutually exclusive and
# SHOULD NOT BE INSTALLED SIMULTANEOUSLY!
TKSTEPVERSION= 8.0
PIXMAPPATH?= ${PREFIX}/share/WindowMaker/Pixmaps
LANGUAGE?=
.if (${LANGUAGE} == "Japanese")
LANGPREFIX= ja-
CATEGORY_LIST= editors windowmaker tkstep80 japanese
RUN_DEP_LIST= ${LOCALBASE}/lib/Img1.2/libimg12.so.1:${PORTSDIR}/japanese/libimg \
${LOCALBASE}/lib/tkstep8.0jp/tkstep.tcl:${PORTSDIR}/japanese/tkstep80
.else
CATEGORY_LIST= editors windowmaker tkstep80
RUN_DEP_LIST= ${LOCALBASE}/lib/Img1.2/libimg12.so.1:${PORTSDIR}/graphics/libimg \
${LOCALBASE}/share/tkstep8.0/tkstep.tcl:${PORTSDIR}/x11-toolkits/tkstep80
.endif
do-install:
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DISTNAME}.tar.gz \
${EXTRACT_AFTER_ARGS} -C ${PREFIX}
${MKDIR} ${PIXMAPPATH}
${INSTALL_DATA} ${PREFIX}/JDE/Muggy/docs/Muggy.logo.xpm ${PIXMAPPATH}/Muggy.xpm
.include <bsd.port.mk>

1
editors/muggy/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (Muggy-1.2b.tar.gz) = 7883f61b1d9ea20f24961dcae95a537c

View File

@ -0,0 +1 @@
A simple text editor for the X on TkStep.

19
editors/muggy/pkg-descr Normal file
View File

@ -0,0 +1,19 @@
Muggy.app is the simple text editor for the X.
It is able to run under the Macintosh [and|or] Windows9?,too.
But it's not supported.
Muggy has two modes called "View" and "Edit".
So you don't have to choose editor or viewer.
I think it's unique.
She will be editable if you run her with no parameters.
And if you run her with a name of file,she will run in the
"View" mode.
You can change the modes if you want.
Note that both editors/muggy and japanese/muggy are mutually exclusive and
SHOULD NOT BE INSTALLED SIMULTANEOUSLY!
-KIRIYAMA Kazuhiko
<kiri@pis.toba-cmt.ac.jp>

58
editors/muggy/pkg-plist Normal file
View File

@ -0,0 +1,58 @@
JDE/Muggy/bin/Muggy.app
@comment JDE/Muggy/bin/PrefMuggy.app
JDE/Muggy/contrib/textundo-1.0-hacked_for_8.0.tar.gz
JDE/Muggy/defaults/Muggy
JDE/Muggy/docs/CHANGES
JDE/Muggy/docs/COPYING
JDE/Muggy/docs/COPYRIGHT
JDE/Muggy/docs/English/INSTALL.tk.en
JDE/Muggy/docs/English/README.en
JDE/Muggy/docs/Japanese/INSTALL.tk.ja
JDE/Muggy/docs/Japanese/INSTALL.tk.sjis
JDE/Muggy/docs/Japanese/README.ja
JDE/Muggy/docs/Japanese/README.sjis
JDE/Muggy/docs/Muggy.logo.xpm
JDE/Muggy/icn/Muggy.about.gif
JDE/Muggy/icn/Muggy.arLeft.gif
JDE/Muggy/icn/Muggy.arRight.gif
JDE/Muggy/icn/Muggy.edit.gif
JDE/Muggy/icn/Muggy.file.gif
JDE/Muggy/icn/Muggy.find.gif
JDE/Muggy/icn/Muggy.html.gif
JDE/Muggy/icn/Muggy.logo.gif
JDE/Muggy/icn/Muggy.view.gif
JDE/Muggy/icn/Pref.en.gif
JDE/Muggy/icn/Pref.ja.gif
JDE/Muggy/icn/mugg.copy.gif
JDE/Muggy/icn/mugg.cut.gif
JDE/Muggy/icn/mugg.find.gif
JDE/Muggy/icn/mugg.gball.gif
JDE/Muggy/icn/mugg.load.gif
JDE/Muggy/icn/mugg.paste.gif
JDE/Muggy/icn/mugg.rball.gif
JDE/Muggy/icn/mugg.save.gif
JDE/Muggy/install.sh
JDE/Muggy/menu/menu.en
JDE/Muggy/menu/menu.ja
JDE/Muggy/modules/FontMaker.m
JDE/Muggy/modules/PrefMuggy.m
JDE/Muggy/modules/Search.m
JDE/Muggy/modules/Undo.m/demo.tcl
JDE/Muggy/modules/Undo.m/lifo.tcl
JDE/Muggy/modules/Undo.m/new.tcl
JDE/Muggy/modules/Undo.m/textundo.tcl
@comment JDE/Muggy/test
bin/Muggy.app
@comment bin/PrefMuggy.app
%%PIXMAP_PATH%%/Muggy.xpm
@dirrm JDE/Muggy/bin
@dirrm JDE/Muggy/contrib
@dirrm JDE/Muggy/defaults
@dirrm JDE/Muggy/docs/English
@dirrm JDE/Muggy/docs/Japanese
@dirrm JDE/Muggy/docs
@dirrm JDE/Muggy/icn
@dirrm JDE/Muggy/menu
@dirrm JDE/Muggy/modules/Undo.m
@dirrm JDE/Muggy/modules
@dirrm JDE/Muggy

View File

@ -0,0 +1,30 @@
#!/bin/sh
installdir=${PREFIX}/JDE/Muggy; export installdir
case ${LANGUAGE} in
Japanese)
for f in Muggy.app; do
${PERL} -pi -e '
s/^(exec[ \t]+)wishstep[^ \t]*([ \t]+.*)$/$1wishstep$ENV{VERSION}jp$2/
' ${installdir}/bin/${f}
done
;;
*)
;;
esac
for f in Muggy Muggy.app; do
case ${f} in
Muggy.app|PrefMuggy.app)
target=${installdir}/bin/${f}
;;
Muggy)
target=${installdir}/defaults/${f}
;;
esac
${PERL} -pi -e '
s@^([ \t]*set[ \t]+Jlib[ \t]+)"[^"]*"$@$1"$ENV{installdir}/"@;
' ${target}
done
${LN} -sf ${installdir}/bin/Muggy.app ${PREFIX}/bin