Skip to content

Commit

Permalink
lang/urweb: Update version 20150520=>20200209
Browse files Browse the repository at this point in the history
- Unbreak port for modern FreeBSD versions, such as FreeBSD 12 and 13,
  and likely 14
- Update LIB_DEPENDS with new dependencies
- Pet portlint
- While I(bofh) am here pet portclippy/portfmt
- Utilize OPTIONSNG

PR:		262082
  • Loading branch information
Timothy Beyer authored and 5u623l20 committed Mar 21, 2023
1 parent cba814b commit ecae8fd
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 69 deletions.
78 changes: 32 additions & 46 deletions lang/urweb/Makefile
@@ -1,8 +1,6 @@
PORTNAME= urweb
PORTVERSION= 20150520
PORTREVISION= 3
PORTVERSION= 20200209
CATEGORIES= lang www
MASTER_SITES= http://www.impredicative.com/ur/

MAINTAINER= beyert@cs.ucr.edu
COMMENT= Ultimate host for embedded domain-specific languages
Expand All @@ -11,60 +9,48 @@ WWW= http://www.impredicative.com/ur/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

BROKEN= fails to build
BROKEN_FreeBSD_12= invalid target: self
BROKEN_FreeBSD_13= invalid target: self
DEPRECATED= Broken since 2020
EXPIRATION_DATE= 2023-03-20
ONLY_FOR_ARCHS= amd64 i386

BUILD_DEPENDS= mlton:lang/mlton
LIB_DEPENDS= libgmp.so:math/gmp \
libicudata.so:devel/icu

CONFIGURE_ENV= CCARGS="-I${LOCALBASE}/include"

GNU_CONFIGURE= yes
USES= gmake libtool tar:tgz ssl
USES= autoreconf gmake libtool ssl tar:tgz
USE_GITHUB= yes
USE_LDCONFIG= yes
ONLY_FOR_ARCHS= i386 amd64
CFLAGS+= -pthread

OPTIONS_DEFINE= ELISP PGSQL SQLITE MYSQL
OPTIONS_DEFAULT= ELISP PGSQL
OPTIONS_EXCLUDE= NLS DOCS
ELISP_DESC= Install contributed Emacs Lisp

.include <bsd.port.options.mk>

GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
CONFIGURE_ENV= CCARGS="-I${LOCALBASE}/include"

.if ${PORT_OPTIONS:MELISP}
PLIST_SUB+= ELISP=""
CONFIGURE_ARGS+= with_emacs=yes
.else
PLIST_SUB+= ELISP="@comment "
CONFIGURE_ARGS+= with_emacs=no
.endif
CFLAGS+= -pthread

.if ${PORT_OPTIONS:MPGSQL}
USES+= pgsql
WANT_PGSQL= server
.else
CONFIGURE_ENV+= PGHEADER="no"
.endif
OPTIONS_DEFINE= ELISP MYSQL PGSQL SQLITE
OPTIONS_DEFAULT= ELISP PGSQL
OPTIONS_EXCLUDE= DOCS NLS
OPTIONS_SUB= yes

.if ${PORT_OPTIONS:MSQLITE}
USES+= sqlite
.else
CONFIGURE_ENV+= SQHEADER="no"
.endif
ELISP_DESC= Install contributed Emacs Lisp

.if ${PORT_OPTIONS:MMYSQL}
USES+= mysql
.else
CONFIGURE_ENV+= MSHEADER="no"
.endif
ELISP_CONFIGURE_ON= with_emacs=yes
ELISP_CONFIGURE_OFF= with_emacs=no
MYSQL_USES= mysql
MYSQL_CONFIGURE_ENV_OFF= MSHEADER="no"
PGSQL_USES= pgsql
PGSQL_CONFIGURE_ENV_OFF= PGHEADER="no"
PGSQL_VARS= WANT_PGSQL=server
SQLITE_USES= sqlite
SQLITE_CONFIGURE_ENV_OFF= SQHEADER="no"

post-patch:
${REINPLACE_CMD} -e "s|postgresql/libpq-fe.h|libpq-fe.h|g" \
${WRKSRC}/configure
@${REINPLACE_CMD} -e "s|postgresql/libpq-fe.h|libpq-fe.h|g" \
${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e "s|uw_Basis_int true|uw_Basis_int utrue|" \
-e "s|uw_Basis_int false|uw_Basis_int ufalse|" \
-e "s|uw_Basis_bool true|uw_Basis_bool utrue|" \
-e "s|uw_Basis_bool false|uw_Basis_bool ufalse|" \
-e "s|\&true|\&utrue|g" -e "s|\&false|\&ufalse|g" \
-e "s|abs(ret)|llabs(ret)|" \
${WRKSRC}/src/c/urweb.c

.include <bsd.port.mk>
5 changes: 3 additions & 2 deletions lang/urweb/distinfo
@@ -1,2 +1,3 @@
SHA256 (urweb-20150520.tgz) = 35f31c9b39093dc50be72731ae7288245befc1b98bfcdcc481db15a8c937f41a
SIZE (urweb-20150520.tgz) = 4349365
TIMESTAMP = 1679330544
SHA256 (urweb-urweb-20200209_GH0.tar.gz) = 56062e4b2485c73e2b912e6c7631ce47e885774dd0ac4e9acbb21594165fac01
SIZE (urweb-urweb-20200209_GH0.tar.gz) = 804989
11 changes: 0 additions & 11 deletions lang/urweb/files/patch-src__c__urweb.c

This file was deleted.

24 changes: 14 additions & 10 deletions lang/urweb/pkg-plist
Expand Up @@ -6,32 +6,35 @@ include/urweb/types.h
include/urweb/types_cpp.h
include/urweb/urweb.h
include/urweb/urweb_cpp.h
include/urweb/uthash.h
lib/liburweb.a
lib/liburweb.so
lib/liburweb.so.0
lib/liburweb.so.0.0.0
lib/liburweb.so.1
lib/liburweb.so.1.0.0
lib/liburweb_cgi.a
lib/liburweb_cgi.so
lib/liburweb_cgi.so.0
lib/liburweb_cgi.so.0.0.0
lib/liburweb_cgi.so.1
lib/liburweb_cgi.so.1.0.0
lib/liburweb_fastcgi.a
lib/liburweb_fastcgi.so
lib/liburweb_fastcgi.so.0
lib/liburweb_fastcgi.so.0.0.0
lib/liburweb_fastcgi.so.1
lib/liburweb_fastcgi.so.1.0.0
lib/liburweb_http.a
lib/liburweb_http.so
lib/liburweb_http.so.0
lib/liburweb_http.so.0.0.0
lib/liburweb_http.so.1
lib/liburweb_http.so.1.0.0
lib/liburweb_static.a
lib/liburweb_static.so
lib/liburweb_static.so.0
lib/liburweb_static.so.0.0.0
lib/liburweb_static.so.1
lib/liburweb_static.so.1.0.0
lib/urweb/js/urweb.js
lib/urweb/ur/basis.urs
lib/urweb/ur/char.ur
lib/urweb/ur/char.urs
lib/urweb/ur/datetime.ur
lib/urweb/ur/datetime.urs
lib/urweb/ur/json.ur
lib/urweb/ur/json.urs
lib/urweb/ur/list.ur
lib/urweb/ur/list.urs
lib/urweb/ur/listPair.ur
Expand All @@ -46,6 +49,7 @@ lib/urweb/ur/top.ur
lib/urweb/ur/top.urs
%%ELISP%%share/emacs/site-lisp/urweb-mode/urweb-compat.el
%%ELISP%%share/emacs/site-lisp/urweb-mode/urweb-defs.el
%%ELISP%%share/emacs/site-lisp/urweb-mode/urweb-flycheck.el
%%ELISP%%share/emacs/site-lisp/urweb-mode/urweb-mode-startup.el
%%ELISP%%share/emacs/site-lisp/urweb-mode/urweb-mode.el
%%ELISP%%share/emacs/site-lisp/urweb-mode/urweb-move.el
Expand Down

0 comments on commit ecae8fd

Please sign in to comment.