pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/plan9port misc/plan9port: import package from wip.
details: https://anonhg.NetBSD.org/pkgsrc/rev/578bccc21519
branches: trunk
changeset: 389594:578bccc21519
user: vins <vins%pkgsrc.org@localhost>
date: Tue Dec 06 14:29:25 2022 +0000
description:
misc/plan9port: import package from wip.
Plan 9 from User Space (aka plan9port) is a port of many Plan 9
programs from their native Plan 9 environment to Unix-like operating
systems.
diffstat:
misc/plan9port/DESCR | 3 +
misc/plan9port/MESSAGE | 18 +
misc/plan9port/Makefile | 171 +
misc/plan9port/PLIST | 8060 +++++++++++
misc/plan9port/distinfo | 10 +
misc/plan9port/files/acme.desktop | 11 +
misc/plan9port/files/acme.sh | 3 +
misc/plan9port/files/plan9.sh | 30 +
misc/plan9port/options.mk | 17 +
misc/plan9port/patches/patch-INSTALL | 34 +
misc/plan9port/patches/patch-bin_9c | 84 +
misc/plan9port/patches/patch-bin_9l | 47 +
misc/plan9port/patches/patch-src_cmd_devdraw_mkwsysrules.sh | 15 +
misc/plan9port/patches/patch-src_cmd_rio_mkfile | 12 +
14 files changed, 8515 insertions(+), 0 deletions(-)
diffs (truncated from 8571 to 300 lines):
diff -r 0a924958cc28 -r 578bccc21519 misc/plan9port/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/plan9port/DESCR Tue Dec 06 14:29:25 2022 +0000
@@ -0,0 +1,3 @@
+Plan 9 from User Space (aka plan9port) is a port of many Plan 9
+programs from their native Plan 9 environment to Unix-like operating
+systems.
diff -r 0a924958cc28 -r 578bccc21519 misc/plan9port/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/plan9port/MESSAGE Tue Dec 06 14:29:25 2022 +0000
@@ -0,0 +1,18 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2022/12/06 14:29:25 vins Exp $
+
+To use plan9port, set the PLAN9 and PATH environmental variables as below:
+
+ export PLAN9=${PREFIX}/plan9
+ export PATH=${PATH}:${PLAN9}/bin
+
+Or source plan9.sh within your shell startup script.
+
+ . ${PKG_SYSCONFDIR}/profile.d/plan9.sh
+
+To execute plan9 specific apps, run them as arguments to the '9' script,
+i.e. '9 date'.
+
+Run '9 man 1 intro | less' to begin
+
+===========================================================================
diff -r 0a924958cc28 -r 578bccc21519 misc/plan9port/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/plan9port/Makefile Tue Dec 06 14:29:25 2022 +0000
@@ -0,0 +1,171 @@
+# $NetBSD: Makefile,v 1.1 2022/12/06 14:29:25 vins Exp $
+
+DISTNAME= plan9port-20220912
+CATEGORIES= misc plan9
+MASTER_SITES= ${MASTER_SITE_GITHUB:=9fans/}
+GITHUB_TAG= ffbdd1aa20c8a20a8e9dcd3cec644b6dfa3c6acb
+
+MAINTAINER= vins%NetBSD.org@localhost
+HOMEPAGE= https://9fans.github.io/plan9port/
+COMMENT= Plan 9 from User Space
+# mostly MIT (see LICENSE)
+# certain fonts may NOT be redistributed separately.
+LICENSE= mit AND zlib
+
+USE_LANGUAGES= c c++
+USE_TOOLS+= bash:run perl pax
+
+MKPIE_SUPPORTED= no
+RELRO_SUPPORTED= no
+
+REPLACE_BASH+= bin/macedit
+REPLACE_BASH+= mac/9term.app/Contents/MacOS/9term
+REPLACE_BASH+= mac/Plumb.app/Contents/MacOS/plumb
+REPLACE_BASH+= src/cmd/rc/checkparse
+
+REPLACE_PERL+= dist/addsrclinks
+REPLACE_PERL+= dist/fixurls
+REPLACE_PERL+= unix/man/fixurls
+
+REPLACE_INTERPRETER+= rc
+REPLACE.rc.old= .*/bin/rc
+REPLACE.rc.new= ${PREFIX}/plan9/bin/rc
+REPLACE_FILES.rc+= bin/wintext
+REPLACE_FILES.rc+= acid/transcript
+REPLACE_FILES.rc+= acid/window
+REPLACE_FILES.rc+= src/cmd/9660/mk9660.rc
+REPLACE_FILES.rc+= src/cmd/dict/egfix
+REPLACE_FILES.rc+= src/cmd/dict/egfix2
+REPLACE_FILES.rc+= src/cmd/dict/gefix
+REPLACE_FILES.rc+= src/cmd/dict/getneeds
+REPLACE_FILES.rc+= src/cmd/fossil/conf.rc
+REPLACE_FILES.rc+= src/cmd/lp/lp.rc
+REPLACE_FILES.rc+= src/cmd/lp/lpsend.rc
+REPLACE_FILES.rc+= src/cmd/map/map.rc
+REPLACE_FILES.rc+= src/cmd/map/mapdemo.rc
+REPLACE_FILES.rc+= src/cmd/netfiles/netfileget
+REPLACE_FILES.rc+= src/cmd/netfiles/netfileput
+REPLACE_FILES.rc+= src/cmd/netfiles/netfilestat
+REPLACE_FILES.rc+= src/cmd/spell/spell.rc
+REPLACE_FILES.rc+= src/cmd/upas/filterkit/pipefrom.sample
+REPLACE_FILES.rc+= src/cmd/upas/misc/mail.rc
+REPLACE_FILES.rc+= src/cmd/upas/misc/qmail
+REPLACE_FILES.rc+= src/cmd/upas/misc/remotemail
+REPLACE_FILES.rc+= src/cmd/venti/srv/conf.rc
+REPLACE_FILES.rc+= src/cmd/venti/srv/tester
+
+SUBST_CLASSES+= cc
+SUBST_STAGE.cc= pre-configure
+SUBST_FILES.cc+= INSTALL
+SUBST_FILES.cc+= bin/9c bin/9l
+SUBST_VARS.cc= CC
+SUBST_MESSAGE.cc= Defining preferred compiler.
+
+SUBST_CLASSES+= prefix
+SUBST_STAGE.prefix= pre-configure
+SUBST_FILES.prefix+= src/cmd/devdraw/mkwsysrules.sh
+SUBST_FILES.prefix+= plan9.sh acme.sh
+SUBST_VARS.prefix= PREFIX
+SUBST_MESSAGE.prefix= Replacing PREFIX placeholders.
+
+PLAN9_TARGET= ${PREFIX}/plan9
+
+EGDIR= ${PREFIX}/share/examples/profile.d
+CONF_FILES+= ${EGDIR}/plan9.sh \
+ ${PKG_SYSCONFDIR}/profile.d/plan9.sh
+DOCDIR= ${PREFIX}/share/doc/plan9
+
+MAKE_DIRS+= ${PKG_SYSCONFDIR}/profile.d
+
+PLAN9_BUILD= ${DESTDIR}${PLAN9_TARGET}
+INSTALL_ENV+= PLAN9_TARGET=${PLAN9_TARGET}
+
+.include "../../mk/bsd.prefs.mk"
+.if exists(/dev/kmem) && ${OPSYS:M*BSD}
+SETUID_ROOT_PERMS?= ${REAL_ROOT_USER} kmem 2755
+SPECIAL_PERMS+= ${PLAN9_TARGET}/bin/auxstats ${SETUID_ROOT_PERMS}
+.endif
+
+INSTALLATION_DIRS+= bin plan9 ${EGDIR}
+INSTALLATION_DIRS+= share/doc/plan9
+INSTALLATION_DIRS+= share/applications
+INSTALLATION_DIRS+= share/pixmaps
+
+.include "options.mk"
+
+post-extract:
+.for s in acme.sh plan9.sh
+ ${RUN}${CP} ${FILESDIR}/${s} ${WRKSRC}
+.endfor
+
+do-configure:
+ ${RUN}${ECHO} "CC9='${CC}'" >> ${WRKSRC}/LOCAL.config
+ ${RUN}${ECHO} "CC9FLAGS='${CFLAGS}'" >> ${WRKSRC}/LOCAL.config
+ ${RUN}${ECHO} "LDFLAGS='${LDFLAGS}'" >> ${WRKSRC}/LOCAL.config
+ ${RUN}${ECHO} "FONTSRV=fontsrv" >> ${WRKSRC}/LOCAL.config
+.if ${OPSYS} == "Darwin"
+ ${RUN}${ECHO} "WSYSTYPE='mac'" >> ${WRKSRC}/LOCAL.config
+.elif !empty(PKG_OPTIONS:Mx11)
+ ${RUN}${ECHO} "WSYSTYPE='x11'" >> ${WRKSRC}/LOCAL.config
+.else
+ ${RUN}${ECHO} "WSYSTYPE='nowsys'" >> ${WRKSRC}/LOCAL.config
+.endif
+
+do-build:
+ ${RUN}cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} ./INSTALL -b
+
+post-build:
+.for h in *.orig .gitignore .gitkeep .travis.yml
+ ${RUN}${FIND} ${WRKSRC} -type f -name "${h}" -delete
+.endfor
+
+do-install:
+# Move everything to the PLAN9 target.
+ ${RUN}cd ${WRKSRC} && ${PAX} -rw -pm . ${PLAN9_BUILD}
+# Rename hard-coded paths and builds mans.
+ ${RUN}cd ${PLAN9_BUILD} && \
+ ${SETENV} ${MAKE_ENV} ${INSTALL_ENV} ${SH} ./INSTALL -c
+# Install docs and sample profile script.
+.for f in CHANGES LICENSE README.md
+ ${RUN}cd ${PLAN9_BUILD} && \
+ ${PAX} -rw -pm ${f} ${DESTDIR}${DOCDIR}
+.endfor
+ ${INSTALL_SCRIPT} ${PLAN9_BUILD}/plan9.sh \
+ ${DESTDIR}${PREFIX}/share/examples/profile.d
+# Delete installation files and other leftovers.
+ ${RUN}${FIND} ${PLAN9_BUILD} -maxdepth 1 -type f ! -name rcmain -delete
+# Avoid 'executable bit is set on non-executable file'
+.for x in bclib mimetype
+ ${RUN}${FIND} ${PLAN9_BUILD}/lib \
+ -type f -name ${x} -exec ${CHMOD} -x '{}' \;
+.endfor
+.for x in ignore namefiles names.local rewrite
+ ${RUN}${FIND} ${PLAN9_BUILD}/mail/lib \
+ -type f -name ${x} -exec ${CHMOD} -x '{}' \;
+.endfor
+.for x in resample.1 soelim.1 ssam.1
+ ${RUN}${FIND} ${PLAN9_BUILD}/man/man1 \
+ -type f -name ${x} -exec ${CHMOD} -x '{}' \;
+.endfor
+.for x in compress.c filter.y mkfile
+ ${RUN}${FIND} ${PLAN9_BUILD}/src \
+ -type f -name ${x} -exec ${CHMOD} -x '{}' \;
+.endfor
+ ${RUN}${CHMOD} -x ${PLAN9_BUILD}/font/MAP
+ ${RUN}${CHMOD} -x ${PLAN9_BUILD}/man/fonts
+
+post-install:
+# Run acme as a standalone application.
+ ${INSTALL_SCRIPT} ${WRKSRC}/acme.sh \
+ ${DESTDIR}${PREFIX}/bin/acme
+ ${INSTALL_DATA} ${FILESDIR}/acme.desktop \
+ ${DESTDIR}${PREFIX}/share/applications
+ ${INSTALL_DATA} ${WRKSRC}/dist/glendacircle.png \
+ ${DESTDIR}${PREFIX}/share/pixmaps/acme.png
+
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+PTHREAD_AUTO_VARS= yes
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 0a924958cc28 -r 578bccc21519 misc/plan9port/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/plan9port/PLIST Tue Dec 06 14:29:25 2022 +0000
@@ -0,0 +1,8060 @@
+@comment $NetBSD: PLIST,v 1.1 2022/12/06 14:29:25 vins Exp $
+bin/acme
+plan9/acid/386
+plan9/acid/68020
+plan9/acid/acme
+plan9/acid/alef
+plan9/acid/alpha
+plan9/acid/amd64
+plan9/acid/arm
+plan9/acid/coverage
+plan9/acid/kernel
+plan9/acid/leak
+plan9/acid/mips
+plan9/acid/network
+plan9/acid/pool
+plan9/acid/port
+plan9/acid/power
+plan9/acid/pthread-linux-386
+plan9/acid/sparc
+plan9/acid/syscall
+plan9/acid/thread
+plan9/acid/transcript
+plan9/acid/trump
+plan9/acid/truss
+plan9/acid/venti
+plan9/acid/window
+plan9/bin/"
+plan9/bin/""
+plan9/bin/9
+plan9/bin/9.rc
+plan9/bin/9660srv
+plan9/bin/9ar
+plan9/bin/9c
+plan9/bin/9fs
+plan9/bin/9import
+plan9/bin/9l
+plan9/bin/9p
+plan9/bin/9pfuse
+plan9/bin/9pserve
+plan9/bin/9term
+plan9/bin/B
+plan9/bin/E
+plan9/bin/Getdir
+plan9/bin/Mail
+plan9/bin/Netfiles
+plan9/bin/acid
+plan9/bin/acidtypes
+plan9/bin/acme
+plan9/bin/acmeevent
+plan9/bin/adict
+plan9/bin/aescbc
+plan9/bin/ascii
+plan9/bin/asn12dsa
+plan9/bin/asn12rsa
+plan9/bin/astro
+plan9/bin/auxclog
+plan9/bin/auxstats
+plan9/bin/awd
+plan9/bin/awk
+plan9/bin/basename
+plan9/bin/bc
+plan9/bin/bmp
+plan9/bin/bundle
+plan9/bin/bunzip2
+plan9/bin/bzip2
+plan9/bin/cal
+plan9/bin/calendar
+plan9/bin/cat
+plan9/bin/cb
+plan9/bin/cleanname
+plan9/bin/clock
+plan9/bin/cmapcube
+plan9/bin/cmp
+plan9/bin/col
+plan9/bin/colors
+plan9/bin/comm
+plan9/bin/compress
+plan9/bin/core
+plan9/bin/crop
+plan9/bin/date
+plan9/bin/db
+plan9/bin/dc
+plan9/bin/dd
+plan9/bin/delatex
+plan9/bin/deroff
+plan9/bin/devdraw
+plan9/bin/dial
+plan9/bin/dict
+plan9/bin/diff
+plan9/bin/disk/.placeholder
+plan9/bin/disk/mkext
+plan9/bin/disk/mkfs
Home |
Main Index |
Thread Index |
Old Index