Bug 198591 - [new port] devel/lua-MessagePack 0.3.2.
Summary: [new port] devel/lua-MessagePack 0.3.2.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks: 198713
  Show dependency treegraph
 
Reported: 2015-03-15 05:53 UTC by oleksii.tsai
Modified: 2015-05-29 18:11 UTC (History)
1 user (show)

See Also:


Attachments
Tarball with port. (805 bytes, application/gzip)
2015-03-15 05:53 UTC, oleksii.tsai
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description oleksii.tsai 2015-03-15 05:53:02 UTC
Created attachment 154317 [details]
Tarball with port.

Adding a port for Lua msgpack library.
This library is being used by neovim. Addind this port to simplify
neovim porting in future.
Comment 1 Dmitry Marakasov freebsd_committer freebsd_triage 2015-05-27 15:43:52 UTC
Suggested changes:

- Use PORTVERSION instead of DISTVERSION
- Add LICENSE_FILE
- Add NO_BUILD to not call makefile unncecessary (which also leads to error message)
- Add NO_ARCH
- Modernize github usage (changes distinfo)
- Add WWW

diff -ruN lua-MessagePack.orig/Makefile lua-MessagePack/Makefile
--- lua-MessagePack.orig/Makefile       2015-05-27 18:37:59.606375000 +0300
+++ lua-MessagePack/Makefile    2015-05-27 18:39:58.849520000 +0300
@@ -1,7 +1,7 @@
 # $FreeBSD: $
 
 PORTNAME=      MessagePack
-DISTVERSION=   0.3.2
+PORTVERSION=   0.3.2
 CATEGORIES=    devel
 PKGNAMEPREFIX=  ${LUA_PKGNAMEPREFIX}

@@ -9,14 +9,15 @@
 COMMENT=       Efficient binary serialization format
 
 LICENSE=       MIT
+LICENSE_FILE=  ${WRKSRC}/COPYRIGHT

-USES=  lua gmake
+USES=          lua gmake
+NO_BUILD=      yes
+NO_ARCH=       yes
 
 USE_GITHUB=    yes
 GH_ACCOUNT=    fperrad
 GH_PROJECT=    lua-MessagePack
-GH_TAGNAME=    ${DISTVERSION}
-GH_COMMIT=     d81445e
 
 PLIST_FILES=   %%LUA_MODSHAREDIR%%/${PORTNAME}.lua

diff -ruN lua-MessagePack.orig/distinfo lua-MessagePack/distinfo
--- lua-MessagePack.orig/distinfo       2015-05-27 18:37:59.606456000 +0300
+++ lua-MessagePack/distinfo    2015-05-27 18:38:36.469133000 +0300
@@ -1,2 +1,2 @@
-SHA256 (MessagePack-0.3.2.tar.gz) = e60e0d2e19406e76e9cb684a9fb8610a6433af862ee11db2e869be94079202b1
-SIZE (MessagePack-0.3.2.tar.gz) = 16028
+SHA256 (fperrad-lua-MessagePack-0.3.2_GH0.tar.gz) = 6580961958dd43455f7f74708514011e0aadf442167869fb60c53b018f041eac
+SIZE (fperrad-lua-MessagePack-0.3.2_GH0.tar.gz) = 16003
diff -ruN lua-MessagePack.orig/pkg-descr lua-MessagePack/pkg-descr
--- lua-MessagePack.orig/pkg-descr      2015-05-27 18:37:59.606293000 +0300
+++ lua-MessagePack/pkg-descr   2015-05-27 18:40:35.809011000 +0300
@@ -1,3 +1,5 @@
 MessagePack is an efficient binary serialization format.  It lets you exchange
 data among multiple languages like JSON but it's faster and smaller.  It's a
 pure Lua implementation, without dependency.  And it's really fast with LuaJIT.
+
+WWW: https://github.com/fperrad/lua-MessagePack
Comment 2 Dmitry Marakasov freebsd_committer freebsd_triage 2015-05-28 09:33:20 UTC
Is submitter OK with these changes?
Comment 3 oleksii.tsai 2015-05-29 05:44:04 UTC
(In reply to Dmitry Marakasov from comment #2)
I am ok. Thank you these corrections.
Comment 4 commit-hook freebsd_committer freebsd_triage 2015-05-29 18:11:14 UTC
A commit references this bug:

Author: amdmi3
Date: Fri May 29 18:10:16 UTC 2015
New revision: 387875
URL: https://svnweb.freebsd.org/changeset/ports/387875

Log:
  MessagePack is an efficient binary serialization format.  It lets you exchange
  data among multiple languages like JSON but it's faster and smaller.  It's a
  pure Lua implementation, without dependency.  And it's really fast with LuaJIT.

  WWW: https://github.com/fperrad/lua-MessagePack

  PR:		198591
  Submitted by:	oleksii.tsai@gmail.com

Changes:
  head/devel/Makefile
  head/devel/lua-MessagePack/
  head/devel/lua-MessagePack/Makefile
  head/devel/lua-MessagePack/distinfo
  head/devel/lua-MessagePack/pkg-descr