Skip to content

Commit

Permalink
devel/erlang-syslog: update for OTP24
Browse files Browse the repository at this point in the history
- switch to rebar3
- switch to erlang-native-compiler

This avoids the erl_interface error from unmaintained
build chains for a perfectly cromulent syslog handler
  • Loading branch information
dch committed Sep 30, 2021
1 parent ae0fabf commit 36f8f3b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
7 changes: 6 additions & 1 deletion devel/erlang-syslog/Makefile
@@ -1,12 +1,17 @@
PORTNAME= syslog
PORTVERSION= 1.0.5
PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= erlang-

MAINTAINER= erlang@FreeBSD.org
COMMENT= Erlang port driver for interacting with syslog

USES= erlang:rebar
LICENSE= BSD2CLAUSE

BUILD_DEPENDS= enc:devel/erlang-native-compiler

USES= erlang:rebar3
USE_GITHUB= yes
GH_ACCOUNT= Vagabond
GH_PROJECT= ${PKGNAMEPREFIX}${PORTNAME}
Expand Down
2 changes: 1 addition & 1 deletion devel/erlang-syslog/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1495355905
TIMESTAMP = 1632942796
SHA256 (Vagabond-erlang-syslog-1.0.5_GH0.tar.gz) = 3a49e7973ff8522bede8e73ff2465e6ad306205a4bffa1ed0efe4740819810e6
SIZE (Vagabond-erlang-syslog-1.0.5_GH0.tar.gz) = 6345
22 changes: 22 additions & 0 deletions devel/erlang-syslog/files/patch-rebar.config
@@ -0,0 +1,22 @@
--- rebar.config.orig 2021-09-29 19:21:16 UTC
+++ rebar.config
@@ -8,16 +8,8 @@
{platform_define, "^[0-9]+", namespaced_types}
]}.

-{plugins, [
- { pc, { git, "git://github.com/blt/port_compiler.git", {tag, "1.6.0"}}}
-]}.
-
{artifacts, ["priv/syslog_drv.so"]}.

-{provider_hooks, [
- {post,
- [
- {compile, {pc, compile}},
- {clean, {pc, clean}}
- ]
-}]}.
+{pre_hooks, [{"", compile, "/usr/local/bin/enc compile"}]}.
+{post_hooks, [{"", clean, "/usr/local/bin/enc clean"}]}.
+

0 comments on commit 36f8f3b

Please sign in to comment.