Thursday, May 23, 2019

Re: Move lang/pcc to lang/pcc/pcc, update to 20190521 and add lang/pcc/pcc-libs

In do-test target replace "./cc/cc/pcc" with "./cc/cc/cc".

Also p++ is not a C++ compiler, it can't even compile hello world in C++
:(

On Tue, May 21, 2019 at 07:41:19PM +0300, Leonid Bobrov wrote:
> Thomas Frohwein said I should use 1.1.0.20190521 to avoid EPOCH in the
> future, but I'd like to get more comments on versioning.
>
> I still wonder what tweaks can be made to plist?
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/lang/pcc/Makefile,v
> retrieving revision 1.17
> diff -u -p -r1.17 Makefile
> --- Makefile 3 May 2019 16:59:10 -0000 1.17
> +++ Makefile 21 May 2019 16:34:14 -0000
> @@ -1,33 +1,7 @@
> # $OpenBSD: Makefile,v 1.17 2019/05/03 16:59:10 danj Exp $
>
> -COMMENT = portable C compiler
> +SUBDIR =
> +SUBDIR += pcc
> +SUBDIR += pcc-libs
>
> -PCCVER = 1.0.0
> -DISTNAME = pcc-${PCCVER}
> -REVISION = 14
> -EXTRACT_SUFX = .tgz
> -
> -CATEGORIES = lang
> -
> -HOMEPAGE = http://pcc.ludd.ltu.se/
> -
> -# Other architectures not fully supported yet
> -ONLY_FOR_ARCHS = i386 amd64
> -
> -# BSD
> -PERMIT_PACKAGE_CDROM = Yes
> -
> -WANTLIB += c
> -
> -MASTER_SITES = http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/ \
> - ftp://pcc.ludd.ltu.se/pub/pcc-releases/
> -
> -CONFIGURE_STYLE = gnu
> -
> -CONFIG = ${MACHINE_ARCH:S/amd64/x86_64/}-unknown-openbsd${OSREV}
> -SUBST_VARS = PCCVER CONFIG
> -
> -do-test:
> - cd ${WRKBUILD} && ./cc/cc/pcc --version
> -
> -.include <bsd.port.mk>
> +.include <bsd.port.subdir.mk>
> Index: Makefile.inc
> ===================================================================
> RCS file: Makefile.inc
> diff -N Makefile.inc
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ Makefile.inc 21 May 2019 16:34:14 -0000
> @@ -0,0 +1,15 @@
> +# $OpenBSD: Makefile,v 1.17 2019/05/03 16:59:10 danj Exp $
> +
> +ONLY_FOR_ARCHS = i386 amd64 sparc64 mips64 mips64el powerpc
> +
> +V = 20190521
> +EXTRACT_SUFX = .tgz
> +
> +CATEGORIES ?= lang
> +
> +HOMEPAGE ?= http://pcc.ludd.ltu.se/
> +
> +# BSD
> +PERMIT_PACKAGE_CDROM = Yes
> +
> +CONFIGURE_STYLE =gnu
> Index: distinfo
> ===================================================================
> RCS file: distinfo
> diff -N distinfo
> --- distinfo 18 Jan 2015 03:14:19 -0000 1.2
> +++ /dev/null 1 Jan 1970 00:00:00 -0000
> @@ -1,2 +0,0 @@
> -SHA256 (pcc-1.0.0.tgz) = WALbukbW6j+brapVuQRKBBa7QQAgwkpcKoouqvQRVss=
> -SIZE (pcc-1.0.0.tgz) = 652308
> Index: pcc/Makefile
> ===================================================================
> RCS file: pcc/Makefile
> diff -N pcc/Makefile
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ pcc/Makefile 21 May 2019 16:34:14 -0000
> @@ -0,0 +1,22 @@
> +# $OpenBSD: Makefile,v 1.17 2019/05/03 16:59:10 danj Exp $
> +
> +COMMENT = portable C compiler
> +
> +DISTNAME = pcc-${V}
> +
> +CATEGORIES = lang
> +
> +# BSD
> +PERMIT_PACKAGE_CDROM = Yes
> +
> +WANTLIB += c
> +
> +RUN_DEPENDS = lang/pcc/pcc-libs
> +
> +MASTER_SITES = http://pcc.ludd.ltu.se/ftp/pub/pcc/ \
> + ftp://pcc.ludd.ltu.se/pub/pcc/
> +
> +do-test:
> + cd ${WRKBUILD} && ./cc/cc/pcc --version
> +
> +.include <bsd.port.mk>
> Index: pcc/distinfo
> ===================================================================
> RCS file: pcc/distinfo
> diff -N pcc/distinfo
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ pcc/distinfo 21 May 2019 16:34:14 -0000
> @@ -0,0 +1,2 @@
> +SHA256 (pcc-20190521.tgz) = Ndw5lkx8zbJnr+al/oIkdVaIpZavfzQLgPiy/n1BD1g=
> +SIZE (pcc-20190521.tgz) = 943299
> Index: pcc/pkg/DESCR
> ===================================================================
> RCS file: pcc/pkg/DESCR
> diff -N pcc/pkg/DESCR
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ pcc/pkg/DESCR 21 May 2019 16:34:14 -0000
> @@ -0,0 +1,19 @@
> +The compiler is based on the original Portable C Compiler by S. C.
> +Johnson, written in the late 70's. Even though much of the compiler has
> +been rewritten, some of the basics still remain.
> +
> +The intention is to write a C99 compiler while still keeping it small,
> +simple, fast and understandable. Think of it as if it shall be able to
> +compile and run on PDP11 (even if it may not happen in reality). But
> +with this in mind it becomes important to think twice about what
> +algorithms are used.
> +
> +The compiler is conceptually structured in two parts; pass1 which is
> +language-dependent, does parsing, typechecking and build trees, and
> +pass2 which is mostly language-independent.
> +
> +About 50% of the frontend code and 80% of the backend code has been
> +rewritten. Most stuff is written by Anders Magnusson, with the
> +exception of the data-flow analysis part and the SSA conversion code
> +which is written by Peter A Jonsson, and the Mips port that were written
> +as part of a project by undergraduate students at LTU.
> Index: pcc/pkg/PLIST
> ===================================================================
> RCS file: pcc/pkg/PLIST
> diff -N pcc/pkg/PLIST
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ pcc/pkg/PLIST 21 May 2019 16:34:14 -0000
> @@ -0,0 +1,12 @@
> +@comment $OpenBSD: PLIST,v$
> +@bin bin/p++
> +@bin bin/pcc
> +@bin bin/pcpp
> +@bin libexec/ccom
> +@bin libexec/cpp
> +@bin libexec/cxxcom
> +@man man/man1/ccom.1
> +@man man/man1/cpp.1
> +@man man/man1/p++.1
> +@man man/man1/pcc.1
> +@man man/man1/pcpp.1
> Index: pkg/DESCR
> ===================================================================
> RCS file: pkg/DESCR
> diff -N pkg/DESCR
> --- pkg/DESCR 19 Apr 2012 14:47:17 -0000 1.1.1.1
> +++ /dev/null 1 Jan 1970 00:00:00 -0000
> @@ -1,19 +0,0 @@
> -The compiler is based on the original Portable C Compiler by S. C.
> -Johnson, written in the late 70's. Even though much of the compiler has
> -been rewritten, some of the basics still remain.
> -
> -The intention is to write a C99 compiler while still keeping it small,
> -simple, fast and understandable. Think of it as if it shall be able to
> -compile and run on PDP11 (even if it may not happen in reality). But
> -with this in mind it becomes important to think twice about what
> -algorithms are used.
> -
> -The compiler is conceptually structured in two parts; pass1 which is
> -language-dependent, does parsing, typechecking and build trees, and
> -pass2 which is mostly language-independent.
> -
> -About 50% of the frontend code and 80% of the backend code has been
> -rewritten. Most stuff is written by Anders Magnusson, with the
> -exception of the data-flow analysis part and the SSA conversion code
> -which is written by Peter A Jonsson, and the Mips port that were written
> -as part of a project by undergraduate students at LTU.
> Index: pkg/PLIST
> ===================================================================
> RCS file: pkg/PLIST
> diff -N pkg/PLIST
> --- pkg/PLIST 19 Apr 2012 14:47:17 -0000 1.1.1.1
> +++ /dev/null 1 Jan 1970 00:00:00 -0000
> @@ -1,12 +0,0 @@
> -@comment $OpenBSD: PLIST,v 1.1.1.1 2012/04/19 14:47:17 okan Exp $
> -@bin bin/pcc
> -lib/pcc/
> -lib/pcc/${CONFIG}/
> -lib/pcc/${CONFIG}/${PCCVER}.RELEASE/
> -lib/pcc/${CONFIG}/${PCCVER}.RELEASE/include/
> -lib/pcc/${CONFIG}/${PCCVER}.RELEASE/lib/
> -@bin libexec/ccom
> -@bin libexec/cpp
> -@man man/man1/ccom.1
> -@man man/man1/cpp.1
> -@man man/man1/pcc.1

No comments:

Post a Comment