summaryrefslogtreecommitdiff
path: root/converters/ruby-iconv/Makefile
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2007-02-13 16:51:26 +0000
committerStanislav Sedov <stas@FreeBSD.org>2007-02-13 16:51:26 +0000
commit5d655dd7c030542583656f7aaa0c7f086c2ae66d (patch)
treec7ccb211a1e753a601bd2ae16e1ca2d42e278832 /converters/ruby-iconv/Makefile
parent@dirrm share/xfce4 -> @dirrmtry share/xfce4 (diff)
- Remove ruby 1.6 stuff.
Notes
Notes: svn path=/head/; revision=185110
Diffstat (limited to 'converters/ruby-iconv/Makefile')
-rw-r--r--converters/ruby-iconv/Makefile41
1 files changed, 13 insertions, 28 deletions
diff --git a/converters/ruby-iconv/Makefile b/converters/ruby-iconv/Makefile
index df8ad18afe2e..65d49df25935 100644
--- a/converters/ruby-iconv/Makefile
+++ b/converters/ruby-iconv/Makefile
@@ -6,51 +6,36 @@
#
PORTNAME= iconv
-PORTVERSION= ${REAL_PORTVERSION}
+PORTVERSION= ${RUBY_PORTVERSION}
PORTEPOCH= 1
CATEGORIES= converters ruby
-MASTER_SITES= ${REAL_MASTER_SITES}
+MASTER_SITES= #empty
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTFILES= # empty
+DISTNAME= ${PORTNAME}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= stas@FreeBSD.org
COMMENT= An iconv wrapper class for Ruby
+BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/lang/ruby18:patch
+
USE_ICONV= yes
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
-INSTALL_TARGET= site-install
+MAKE_ARGS+= sitelibdir='$$(rubylibdir)'
-.include <bsd.port.pre.mk>
+INSTALL_TARGET= site-install
-.if ${RUBY_VER} >= 1.7
-REAL_PORTVERSION= ${RUBY_PORTVERSION}
-DISTNAME= ${PORTNAME}
-DISTFILES= # empty
+PLIST_FILES= ${RUBY_ARCHLIBDIR:S,${PREFIX},,:S,^/,,}/iconv.so
-MAKE_ARGS+= sitelibdir='$$(rubylibdir)'
+.include <bsd.port.pre.mk>
-BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/${RUBY_PORT}:patch
+RUBY_WRKDIR!= cd ${PORTSDIR}/${RUBY_PORT}; ${MAKE} -V WRKDIR
do-extract:
${MKDIR} ${WRKDIR}
- ${LN} -sf `cd ${PORTSDIR}/${RUBY_PORT}; ${MAKE} -V WRKDIR`/${PORTNAME} ${WRKDIR}/
-
-.else
-REAL_PORTVERSION= 0.5
-REAL_MASTER_SITES= http://member.nifty.ne.jp/nokada/archive/
-DIST_SUBDIR= ruby
-
-BROKEN= Not fetchable
-
-post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${RUBY_MODDOCDIR}
-.for f in *.html iconv.rlog rd.css
- ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
-.endfor
-.endif
-.endif
+ ${LN} -sf ${RUBY_WRKDIR}/${PORTNAME} ${WRKDIR}/
.include <bsd.port.post.mk>