Re: UPDATE: plan9port-20200519

2020-06-12 Thread Aaron Bieber


Gleydson Soares writes:

> On Sun, May 24, 2020 at 12:27:25PM -0300, Gleydson Soares wrote:
>> Hi,
>> 
>> here is an update [1] for plan9port, bringing it to latest github commit.
>> 
>> i have removed some heavy optional run_dependencies to slim down it, since 
>> it does not affect the plan9port usability itself. if one wants to read .ps 
>> file or whatever you should just install pkg_add ghostscript/etc and use your
>> plumber pattern to reach them ;-)
>> 
>> I have removed the following extra files what are not part of plan9port,
>> it looks like out-of-date i doubt someone will note it is out:
>> 
>> - cd ${WRKSRC}/dict && tar xjf ${FULLDISTDIR}/pgw.tar.bz2
>> - cd ${WRKSRC}/dict && tar xjf ${FULLDISTDIR}/roget.tar.bz2
>> - cd ${WRKSRC}/sky && tar xzf ${FULLDISTDIR}/scat.tgz
>> 
>> while here get rid of MAP_STACK patch has been merged upstream [2]
>> 
>> i tidy up the port, it requires some additional cleanup i will do afterwards
>> though,
>> 
>> works fine here, if you are a plan9port user please raise your hands
>> 
>> [1] https://trusted.com.br/gsoares/plan9port-20200519.diff
>> [2] 
>> https://github.com/9fans/plan9port/commit/8c573cab6819c69142389d36b978b3c683771afe
>
> Neither feedback nor objetions. I'll commit it tomorrow unless 
> someone objects until there.

I gave it a whirl! Sorry totally forgot to message ya back!

The tiny bits I use seem to work!

OK abieber@

-- 
PGP: 0x1F81112D62A9ADCE / 3586 3350 BFEA C101 DB1A  4AF0 1F81 112D 62A9 ADCE



Re: UPDATE: plan9port-20200519

2020-06-12 Thread Gleydson Soares
On Sun, May 24, 2020 at 12:27:25PM -0300, Gleydson Soares wrote:
> Hi,
> 
> here is an update [1] for plan9port, bringing it to latest github commit.
> 
> i have removed some heavy optional run_dependencies to slim down it, since 
> it does not affect the plan9port usability itself. if one wants to read .ps 
> file or whatever you should just install pkg_add ghostscript/etc and use your
> plumber pattern to reach them ;-)
> 
> I have removed the following extra files what are not part of plan9port,
> it looks like out-of-date i doubt someone will note it is out:
> 
> - cd ${WRKSRC}/dict && tar xjf ${FULLDISTDIR}/pgw.tar.bz2
> - cd ${WRKSRC}/dict && tar xjf ${FULLDISTDIR}/roget.tar.bz2
> - cd ${WRKSRC}/sky && tar xzf ${FULLDISTDIR}/scat.tgz
> 
> while here get rid of MAP_STACK patch has been merged upstream [2]
> 
> i tidy up the port, it requires some additional cleanup i will do afterwards
> though,
> 
> works fine here, if you are a plan9port user please raise your hands
> 
> [1] https://trusted.com.br/gsoares/plan9port-20200519.diff
> [2] 
> https://github.com/9fans/plan9port/commit/8c573cab6819c69142389d36b978b3c683771afe

Neither feedback nor objetions. I'll commit it tomorrow unless 
someone objects until there.



UPDATE: plan9port-20200519

2020-05-24 Thread Gleydson Soares
Hi,

here is an update [1] for plan9port, bringing it to latest github commit.

i have removed some heavy optional run_dependencies to slim down it, since 
it does not affect the plan9port usability itself. if one wants to read .ps 
file or whatever you should just install pkg_add ghostscript/etc and use your
plumber pattern to reach them ;-)

I have removed the following extra files what are not part of plan9port,
it looks like out-of-date i doubt someone will note it is out:

- cd ${WRKSRC}/dict && tar xjf ${FULLDISTDIR}/pgw.tar.bz2
- cd ${WRKSRC}/dict && tar xjf ${FULLDISTDIR}/roget.tar.bz2
- cd ${WRKSRC}/sky && tar xzf ${FULLDISTDIR}/scat.tgz

while here get rid of MAP_STACK patch has been merged upstream [2]

i tidy up the port, it requires some additional cleanup i will do afterwards
though,

works fine here, if you are a plan9port user please raise your hands

[1] https://trusted.com.br/gsoares/plan9port-20200519.diff
[2] 
https://github.com/9fans/plan9port/commit/8c573cab6819c69142389d36b978b3c683771afe
? plan9port-20200519.diff
Index: Makefile
===
RCS file: /cvs/ports/plan9/plan9port/Makefile,v
retrieving revision 1.32
diff -u -p -r1.32 Makefile
--- Makefile20 Mar 2020 16:44:27 -  1.32
+++ Makefile24 May 2020 15:02:53 -
@@ -5,12 +5,11 @@ BROKEN-powerpc =  threading issues
 
 COMMENT =  Plan 9 from user space
 
-DISTNAME = plan9port-20190619
-REVISION = 0
+DISTNAME = plan9port-20200519
 
 GH_ACCOUNT =   9fans
 GH_PROJECT =   plan9port
-GH_COMMIT =e995a0c101863688d5f14649ae3de45a7c43789c
+GH_COMMIT =bfe4377e409ce271c479665e6ef966a7b6008626
 
 CATEGORIES =   plan9
 
@@ -24,16 +23,6 @@ PERMIT_PACKAGE = Yes
 
 WANTLIB =  X11 Xext c m pthread util fontconfig freetype z
 
-DISTFILES =${GH_COMMIT}.tar.gz pgw.tar.bz2:1 \
-   roget.tar.bz2:0 scat.tgz:1
-DIST_SUBDIR =  plan9port
-MASTER_SITES0 =http://pdos.lcs.mit.edu/~rsc/software/plan9/
-MASTER_SITES1 =http://pdos.lcs.mit.edu/~rsc/
-
-BUILD_DEPENDS =archivers/bzip2
-RUN_DEPENDS =  print/ghostscript/gnu \
-   print/gv
-
 WRKDIST =  ${WRKDIR}/plan9port-${GH_COMMIT}
 
 PLAN9 =${PREFIX}/plan9
@@ -43,19 +32,15 @@ NO_TEST =   Yes
 SUBST_VARS +=  CC
 UPDATE_PLIST_ARGS += -i CC
 
-post-extract:
-   cd ${WRKSRC}/dict && tar xjf ${FULLDISTDIR}/pgw.tar.bz2
-   cd ${WRKSRC}/dict && tar xjf ${FULLDISTDIR}/roget.tar.bz2
-   cd ${WRKSRC}/sky && tar xzf ${FULLDISTDIR}/scat.tgz
-
 post-patch:
-   cd ${WRKSRC}/src/libthread && cp Darwin-x86_64-swapcontext.c \
-   OpenBSD-x86_64.c && cp Darwin-x86_64-asm.s \
+   cd ${WRKSRC}/src/libthread && cp Darwin-x86_64-asm.s \
OpenBSD-x86_64-asm.S && mv OpenBSD-386-asm.s \
OpenBSD-386-asm.S
 
 pre-configure:
${SUBST_CMD} ${WRKSRC}/INSTALL ${WRKSRC}/bin/{9c,9l}
+   cd ${WRKSRC} && sed -i 's,#!/bin/bash,#!/bin/sh,' \
+   bin/{macedit,wintext}
 
 do-build:
cd ${WRKSRC} && env CC9="${CC}" CCFLAGS="${CFLAGS}" ./INSTALL -b
@@ -66,6 +51,7 @@ do-install:
 .endfor
cd ${WRKSRC} && sed -i 's#/usr/local#${TRUEPREFIX}#' \
`cat lib/moveplan9.files`
+
${INSTALL_DATA_DIR} ${PLAN9}
cd ${WRKSRC} && pax -rw . ${PLAN9}
cd ${PREFIX} && ln -s ../plan9/bin/9 bin/9
Index: distinfo
===
RCS file: /cvs/ports/plan9/plan9port/distinfo,v
retrieving revision 1.12
diff -u -p -r1.12 distinfo
--- distinfo11 Sep 2019 00:40:54 -  1.12
+++ distinfo24 May 2020 15:02:53 -
@@ -1,8 +1,2 @@
-SHA256 (plan9port/e995a0c101863688d5f14649ae3de45a7c43789c.tar.gz) = 
Y54LsBco/9fMF1Husb/HMUYV2I1vp/TN4hAzrZdiJiQ=
-SHA256 (plan9port/pgw.tar.bz2) = WMdWEelUjG7muSL6OsgnCmPsJMn88b1OPtEYQn8TVtw=
-SHA256 (plan9port/roget.tar.bz2) = sk8FE1Tavljx2CXinbOGCRyErsmBJdvkma3spRoyqDY=
-SHA256 (plan9port/scat.tgz) = qZX1JUSnEvK9uH9TFjjUyEYiT6khLQNOO9joCcuZvh4=
-SIZE (plan9port/e995a0c101863688d5f14649ae3de45a7c43789c.tar.gz) = 23439831
-SIZE (plan9port/pgw.tar.bz2) = 9404968
-SIZE (plan9port/roget.tar.bz2) = 482956
-SIZE (plan9port/scat.tgz) = 5145346
+SHA256 (plan9port-20200519-bfe4377e.tar.gz) = 
TvWs9bPicRSZYfAU3TwBs1a/iCe743v8BQEpotRyGjk=
+SIZE (plan9port-20200519-bfe4377e.tar.gz) = 23447210
Index: patches/patch-INSTALL
===
RCS file: /cvs/ports/plan9/plan9port/patches/patch-INSTALL,v
retrieving revision 1.7
diff -u -p -r1.7 patch-INSTALL
--- patches/patch-INSTALL   11 Sep 2019 00:40:54 -  1.7
+++ patches/patch-INSTALL   24 May 2020 15:02:53 -
@@ -3,33 +3,33 @@ $OpenBSD: patch-INSTALL,v 1.7 2019/09/11
 Index: INSTALL
 ---