Support user-destdir installation
This commit is contained in:
parent
5ed70723a1
commit
5ccfe84922
2 changed files with 8 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.16 2007/03/15 16:42:06 taca Exp $
|
||||
# $NetBSD: Makefile,v 1.17 2008/03/13 22:04:07 jlam Exp $
|
||||
#
|
||||
|
||||
DISTNAME= ${RUBY_DISTNAME}
|
||||
|
@ -10,6 +10,8 @@ MAINTAINER= taca@NetBSD.org
|
|||
HOMEPAGE= ${RUBY_HOMEPAGE}
|
||||
COMMENT= Ruby extension to GDBM library
|
||||
|
||||
PKG_DESTDIR_SUPPORT= user-destdir
|
||||
|
||||
RUBY_HAS_ARCHLIB= yes
|
||||
USE_RUBY_EXTCONF= yes
|
||||
DISTINFO_FILE= ${RUBY_DISTINFO_FILE}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.28 2007/03/15 16:43:26 taca Exp $
|
||||
# $NetBSD: Makefile,v 1.29 2008/03/13 22:07:05 jlam Exp $
|
||||
|
||||
DISTNAME= ${RUBY_DISTNAME}
|
||||
PKGNAME= ${RUBY_PKGPREFIX}-tk-${RUBY_VERSION_SUFFIX}
|
||||
|
@ -9,6 +9,8 @@ MAINTAINER= taca@NetBSD.org
|
|||
HOMEPAGE= ${RUBY_HOMEPAGE}
|
||||
COMMENT= Ruby interface to the Tk widget set
|
||||
|
||||
PKG_DESTDIR_SUPPORT= user-destdir
|
||||
|
||||
RUBY_HAS_ARCHLIB= yes
|
||||
USE_RUBY_EXTCONF= yes
|
||||
RUBY_EXTCONF_SUBDIRS= . tkutil
|
||||
|
@ -27,8 +29,8 @@ pre-install:
|
|||
-name '*.orig_dist' \) -exec ${RM} -f {} \;
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/tk
|
||||
${CP} -r ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/tk
|
||||
${INSTALL_DATA_DIR} ${DESTDIR}${RUBY_EXAMPLESDIR}/tk
|
||||
${CP} -r ${WRKSRC}/sample/* ${DESTDIR}${RUBY_EXAMPLESDIR}/tk
|
||||
|
||||
.include "../../lang/ruby/modules.mk"
|
||||
.include "../../lang/ruby/Makefile.common"
|
||||
|
|
Loading…
Reference in a new issue