diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2008-12-06 15:07:10 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2008-12-06 15:07:10 +0000 |
commit | eaa576189826dc96bc024898537febdc799b576f (patch) | |
tree | b456aac423dca014c4fd03dc5b5d3d19b5a45333 /security/ruby-hmac | |
parent | a5effc5eec7b08410d2307e53ee63e93a5192812 (diff) | |
download | ports-eaa576189826dc96bc024898537febdc799b576f.tar.gz ports-eaa576189826dc96bc024898537febdc799b576f.zip |
Notes
Diffstat (limited to 'security/ruby-hmac')
-rw-r--r-- | security/ruby-hmac/Makefile | 24 | ||||
-rw-r--r-- | security/ruby-hmac/distinfo | 6 | ||||
-rw-r--r-- | security/ruby-hmac/pkg-plist | 7 |
3 files changed, 15 insertions, 22 deletions
diff --git a/security/ruby-hmac/Makefile b/security/ruby-hmac/Makefile index 153a45433b93..b642f0367ce2 100644 --- a/security/ruby-hmac/Makefile +++ b/security/ruby-hmac/Makefile @@ -6,25 +6,25 @@ # PORTNAME= hmac -PORTVERSION= 0.3 +PORTVERSION= 0.3.2 CATEGORIES= security ruby -MASTER_SITES= http://deisui.org/~ueno/ruby/ +MASTER_SITES= RF/ruby-hmac PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DISTNAME= ruby-${PORTNAME}-${PORTVERSION} -DIST_SUBDIR= ruby -MAINTAINER= ports@FreeBSD.org +MAINTAINER= wenheping@gmail.com COMMENT= A Ruby library which implements the HMAC algorithm USE_RUBY= yes +USE_RUBYGEMS= yes +GEM_NAME= ${DISTNAME} -NO_BUILD= yes - -do-install: - ${INSTALL_DATA} ${WRKSRC}/hmac*.rb ${RUBY_SITELIBDIR}/ -.if !defined(NOPORTDOCS) - ${MKDIR} ${RUBY_MODEXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_MODEXAMPLESDIR}/ -.endif +post-install: + @${ECHO} ${GEM_CACHE} > ${TMPPLIST} + @${FIND} ${PREFIX}/${GEM_DOC_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},${GEM_DOC_DIR},' >> ${TMPPLIST} + @${FIND} ${PREFIX}/${GEM_LIB_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},${GEM_LIB_DIR},' >> ${TMPPLIST} + @${ECHO} ${GEM_SPEC} >> ${TMPPLIST} + @${FIND} ${PREFIX}/${GEM_LIB_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},@dirrm ${GEM_LIB_DIR},' >> ${TMPPLIST} + @${FIND} ${PREFIX}/${GEM_DOC_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},@dirrm ${GEM_DOC_DIR},' >> ${TMPPLIST} .include <bsd.port.mk> diff --git a/security/ruby-hmac/distinfo b/security/ruby-hmac/distinfo index 826f8e61184d..59476f7dad4b 100644 --- a/security/ruby-hmac/distinfo +++ b/security/ruby-hmac/distinfo @@ -1,3 +1,3 @@ -MD5 (ruby/ruby-hmac-0.3.tar.gz) = 4f0ca6c3e03d3920ad7e032dd8f79185 -SHA256 (ruby/ruby-hmac-0.3.tar.gz) = d85a2fb76bd74a48a19d5a58dd6a3305ce71de220ad83cec42f970d064ae933e -SIZE (ruby/ruby-hmac-0.3.tar.gz) = 2279 +MD5 (rubygem/ruby-hmac-0.3.2.gem) = 783599ce1320380f08acd6440c1e8669 +SHA256 (rubygem/ruby-hmac-0.3.2.gem) = 6cc3b6becf7a4f54a705dc7deaeea3c9408915b5e68f9c31d68f6593b54d653b +SIZE (rubygem/ruby-hmac-0.3.2.gem) = 7168 diff --git a/security/ruby-hmac/pkg-plist b/security/ruby-hmac/pkg-plist deleted file mode 100644 index f72d59ffc190..000000000000 --- a/security/ruby-hmac/pkg-plist +++ /dev/null @@ -1,7 +0,0 @@ -%%RUBY_SITELIBDIR%%/hmac-md5.rb -%%RUBY_SITELIBDIR%%/hmac-rmd160.rb -%%RUBY_SITELIBDIR%%/hmac-sha1.rb -%%RUBY_SITELIBDIR%%/hmac-sha2.rb -%%RUBY_SITELIBDIR%%/hmac.rb -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test.rb -%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%% |