Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 May 2013 13:06:48 +0000 (UTC)
From:      Jimmy Olgeni <olgeni@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r318430 - in head/devel: . oserl oserl/files
Message-ID:  <201305181306.r4ID6mbl057899@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olgeni
Date: Sat May 18 13:06:47 2013
New Revision: 318430
URL: http://svnweb.freebsd.org/changeset/ports/318430

Log:
  Add devel/oserl, an Erlang framework for using the SMPP protocol
  in messaging applications.

Added:
  head/devel/oserl/
  head/devel/oserl/Makefile   (contents, props changed)
  head/devel/oserl/distinfo   (contents, props changed)
  head/devel/oserl/files/
  head/devel/oserl/files/patch-Makefile   (contents, props changed)
  head/devel/oserl/files/patch-rebar.config   (contents, props changed)
  head/devel/oserl/pkg-descr   (contents, props changed)
  head/devel/oserl/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sat May 18 13:02:11 2013	(r318429)
+++ head/devel/Makefile	Sat May 18 13:06:47 2013	(r318430)
@@ -1346,6 +1346,7 @@
     SUBDIR += orbitcpp
     SUBDIR += orc
     SUBDIR += osc
+    SUBDIR += oserl
     SUBDIR += ossp-al
     SUBDIR += ossp-cfg
     SUBDIR += ossp-ex

Added: head/devel/oserl/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/oserl/Makefile	Sat May 18 13:06:47 2013	(r318430)
@@ -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>

Added: head/devel/oserl/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/oserl/distinfo	Sat May 18 13:06:47 2013	(r318430)
@@ -0,0 +1,2 @@
+SHA256 (oserl-3.2.4.tar.gz) = da0be77efdc7a8f0bddffd3eda1f310523ffeac5e9b94825811644d9df8f2b01
+SIZE (oserl-3.2.4.tar.gz) = 248971

Added: head/devel/oserl/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/oserl/files/patch-Makefile	Sat May 18 13:06:47 2013	(r318430)
@@ -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) ..

Added: head/devel/oserl/files/patch-rebar.config
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/oserl/files/patch-rebar.config	Sat May 18 13:06:47 2013	(r318430)
@@ -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",

Added: head/devel/oserl/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/oserl/pkg-descr	Sat May 18 13:06:47 2013	(r318430)
@@ -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

Added: head/devel/oserl/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/oserl/pkg-plist	Sat May 18 13:06:47 2013	(r318430)
@@ -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%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305181306.r4ID6mbl057899>