aboutsummaryrefslogtreecommitdiff
path: root/devel/oserl
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2013-05-18 13:06:47 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2013-05-18 13:06:47 +0000
commita3065e17541b8b1c682462a1bb6426781ce17aaf (patch)
treeb3a67f77edd7ebf81f50101a953c27de36925a79 /devel/oserl
parent43f0fa90ce491d7e9fa30c4597040f9fcf6bfbcf (diff)
downloadports-a3065e17541b8b1c682462a1bb6426781ce17aaf.tar.gz
ports-a3065e17541b8b1c682462a1bb6426781ce17aaf.zip
Notes
Diffstat (limited to 'devel/oserl')
-rw-r--r--devel/oserl/Makefile60
-rw-r--r--devel/oserl/distinfo2
-rw-r--r--devel/oserl/files/patch-Makefile50
-rw-r--r--devel/oserl/files/patch-rebar.config17
-rw-r--r--devel/oserl/pkg-descr10
-rw-r--r--devel/oserl/pkg-plist48
6 files changed, 187 insertions, 0 deletions
diff --git a/devel/oserl/Makefile b/devel/oserl/Makefile
new file mode 100644
index 000000000000..2f81af3a68dd
--- /dev/null
+++ b/devel/oserl/Makefile
@@ -0,0 +1,60 @@
+# $FreeBSD$
+
+PORTNAME= oserl
+PORTVERSION= 3.2.4
+CATEGORIES= devel
+MASTER_SITES= GH
+
+MAINTAINER= olgeni@FreeBSD.org
+COMMENT= SMPP library for Erlang
+
+BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang \
+ txt2tags:${PORTSDIR}/textproc/txt2tags
+RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang \
+ common_lib>=3.3.4:${PORTSDIR}/devel/common_lib
+
+PLIST_SUB= VERSION="${PORTVERSION}"
+
+USE_GITHUB= yes
+GH_ACCOUNT= iamaleksey
+GH_PROJECT= oserl
+GH_COMMIT= f14115d
+GH_TAGNAME= ${PORTVERSION}
+
+USE_GMAKE= yes
+USE_DOS2UNIX= Makefile
+ALL_TARGET= compile doc
+
+MAN1= oserl.1
+MAN3= gen_esme.3 gen_esme_session.3 gen_mc.3 gen_mc_session.3 \
+ smpp_base.3 smpp_base_syntax.3 smpp_disk_log_hlr.3 smpp_error.3 \
+ smpp_log_mgr.3 smpp_operation.3 smpp_param_syntax.3 \
+ smpp_pdu_syntax.3 smpp_ref_num.3 smpp_req_tab.3 smpp_sm.3 \
+ smpp_tty_log_hlr.3
+
+.include <bsd.port.options.mk>
+
+post-extract:
+# Trick rebar into locating the oserl include files (see also patch-rebar.config)
+ @${LN} -s ${WRKSRC} ${WRKDIR}/${PORTNAME}
+ @${REINPLACE_CMD} -e "s@&lt;@<@g" -e "s@&gt;@>@g" ${WRKSRC}/doc/*.ndoc
+
+do-install:
+.for manpage in ${MAN1} ${MAN3}
+ @iconv -f UTF-8 -t ISO-8859-1 ${WRKSRC}/doc/man/${manpage} > ${WRKSRC}/doc/man/${manpage}.iconv
+.endfor
+.for manpage in ${MAN1}
+ @${INSTALL_MAN} ${WRKSRC}/doc/man/${manpage}.iconv ${MAN1PREFIX}/man/man1/${manpage}
+.endfor
+.for manpage in ${MAN3}
+ @${INSTALL_MAN} ${WRKSRC}/doc/man/${manpage}.iconv ${MAN3PREFIX}/man/man3/${manpage}
+.endfor
+ @${MKDIR} ${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}
+ @${MKDIR} ${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/ebin
+ @${MKDIR} ${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/include
+ @${MKDIR} ${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/src
+ @${INSTALL_DATA} ${WRKSRC}/ebin/* ${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/ebin
+ @${INSTALL_DATA} ${WRKSRC}/include/* ${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/include
+ @${INSTALL_DATA} ${WRKSRC}/src/* ${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/src
+
+.include <bsd.port.mk>
diff --git a/devel/oserl/distinfo b/devel/oserl/distinfo
new file mode 100644
index 000000000000..65d5a00a08ab
--- /dev/null
+++ b/devel/oserl/distinfo
@@ -0,0 +1,2 @@
+SHA256 (oserl-3.2.4.tar.gz) = da0be77efdc7a8f0bddffd3eda1f310523ffeac5e9b94825811644d9df8f2b01
+SIZE (oserl-3.2.4.tar.gz) = 248971
diff --git a/devel/oserl/files/patch-Makefile b/devel/oserl/files/patch-Makefile
new file mode 100644
index 000000000000..115c78957989
--- /dev/null
+++ b/devel/oserl/files/patch-Makefile
@@ -0,0 +1,50 @@
+
+$FreeBSD$
+
+--- Makefile.orig
++++ Makefile
+@@ -10,6 +10,13 @@
+ TEXS = $(DOCS:.ndoc=.tex)
+ PDFS = $(DOCS:.ndoc=.pdf)
+
++CD = cd
++ERLDOC = txt2tags
++MKDIR = mkdir
++MV = mv -vf
++RM = rm -vf
++SED = sed
++
+ ### Dependecy Search Paths
+ VPATH = src:include:ebin:doc
+
+@@ -35,7 +42,11 @@
+ @$(RM) -R doc/man
+ @$(RM) -R doc/pdf
+
+-doc: man html pdf
++doc: dirs man html
++
++dirs:
++ @$(MKDIR) doc/man
++ @$(MKDIR) doc/html
+
+ man: $(MANS)
+ @$(MV) doc/man/$(APPNAME)_overview.3 doc/man/$(APPNAME).1
+@@ -49,14 +60,14 @@
+ %.3: %.ndoc
+ @$(CD) doc; $(SED) "s|%MODULES%|`echo $(MODS)`|g" ../$^ | \
+ $(SED) "s|%VSN%|$(VSN)|g" | $(SED) "s|%APPLICATION%|$(APPNAME)|g" | \
+- $(ERLDOC) -i - -t man --no-toc --erl -o man/$@; $(CD) ..
++ $(ERLDOC) -i - -t man --no-toc -o man/$@; $(CD) ..
+
+ %.html: %.ndoc
+ @$(CD) doc; $(SED) "s|%MODULES%|`echo $(MODS)`|g" ../$^ | \
+ $(SED) "s|%VSN%|$(VSN)|g" | $(SED) "s|%APPLICATION%|$(APPNAME)|g" | \
+- $(ERLDOC) -i - -t xhtml --erl -o html/$@; $(CD) ..
++ $(ERLDOC) -i - -t xhtml -o html/$@; $(CD) ..
+
+ %.pdf: %.ndoc
+ @$(CD) doc; $(SED) "s|%MODULES%|`echo $(MODS)`|g" ../$^ | \
+ $(SED) "s|%VSN%|$(VSN)|g" | $(SED) "s|%APPLICATION%|$(APPNAME)|g" | \
+- $(ERLDOC) -i - -t pdf --no-toc --erl -o pdf/$@; $(CD) ..
++ $(ERLDOC) -i - -t pdf --no-toc -o pdf/$@; $(CD) ..
diff --git a/devel/oserl/files/patch-rebar.config b/devel/oserl/files/patch-rebar.config
new file mode 100644
index 000000000000..e3d7941c369b
--- /dev/null
+++ b/devel/oserl/files/patch-rebar.config
@@ -0,0 +1,17 @@
+
+$FreeBSD$
+
+--- rebar.config.orig
++++ rebar.config
+@@ -1,10 +1,7 @@
+-{lib_dirs, ["deps"]}.
++{lib_dirs, ["deps", ".."]}.
+
+ {erl_opts, [warnings_as_errors, debug_info]}.
+
+-{deps, [{common_lib, "3.3.4",
+- {git, "git://github.com/iamaleksey/common_lib.git", {tag, "3.3.4"}}}]}.
+-
+ {erl_first_files, ["src/gen_esme_session.erl",
+ "src/gen_mc_session.erl",
+ "src/gen_esme.erl",
diff --git a/devel/oserl/pkg-descr b/devel/oserl/pkg-descr
new file mode 100644
index 000000000000..c9d69aab2dc1
--- /dev/null
+++ b/devel/oserl/pkg-descr
@@ -0,0 +1,10 @@
+The Short Message Peer-to-Peer (SMPP) in telecommunications is an
+open, industry standard protocol designed to provide a flexible
+data communication interface for the transfer of short message data
+between External Short Messaging Entities (ESME), Routing Entities
+(RE) and Message Centres.
+
+The oserl library provides an Erlang framework to interface with
+SMPP entities.
+
+WWW: https://github.com/iamaleksey/oserl
diff --git a/devel/oserl/pkg-plist b/devel/oserl/pkg-plist
new file mode 100644
index 000000000000..79b574796002
--- /dev/null
+++ b/devel/oserl/pkg-plist
@@ -0,0 +1,48 @@
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/gen_esme.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/gen_esme_session.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/gen_mc.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/gen_mc_session.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/oserl.app
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_base.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_base_syntax.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_disk_log_hlr.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_error.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_log_mgr.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_operation.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_param_syntax.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_pdu_syntax.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_ref_num.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_req_tab.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_session.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_sm.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin/smpp_tty_log_hlr.beam
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/include/e164.hrl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/include/oserl.hrl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/include/smpp_globals.hrl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/gen_esme.erl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/gen_esme_session.erl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/gen_mc.erl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/gen_mc_session.erl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_base.erl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_base.hrl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_base_syntax.erl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_base_syntax.hrl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_disk_log_hlr.erl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_error.erl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_log_mgr.erl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_operation.erl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_param.hrl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_param_syntax.erl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_param_syntax.hrl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_pdu.hrl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_pdu_syntax.erl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_pdu_syntax.hrl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_ref_num.erl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_req_tab.erl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_session.erl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_sm.erl
+%%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src/smpp_tty_log_hlr.erl
+@dirrm %%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/ebin
+@dirrm %%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/include
+@dirrm %%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%/src
+@dirrm %%LIB32DIR%%/erlang/lib/oserl-%%VERSION%%