Modify gem contents packing command in a way that some gems (not
imported yet) could be built. As a bonus, use PATCHORIG instead of hardcoding ".orig" and save a call to find(1). Requires fresh pax(1). ok jeremy@
This commit is contained in:
parent
4125732ce5
commit
1f1faf1c1c
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: ruby.port.mk,v 1.61 2013/03/26 18:51:44 jeremy Exp $
|
||||
# $OpenBSD: ruby.port.mk,v 1.62 2013/03/28 06:54:49 zhuk Exp $
|
||||
|
||||
# ruby module
|
||||
|
||||
@ -377,8 +377,8 @@ MODRUBY_BUILD_TARGET = \
|
||||
cd ${WRKDIST} && gzip .metadata && \
|
||||
mv -f .metadata.gz ${_GEM_CONTENT}/metadata.gz; \
|
||||
fi; \
|
||||
cd ${WRKDIST} && find . -type f \! -name '*.orig' -print | \
|
||||
pax -wz -s '/^\.\///' -f ${_GEM_DATAFILE}; \
|
||||
cd ${WRKDIST} && pax -wz -s '/.*${PATCHORIG:S@.@\.@}$$//' \
|
||||
-x ustar -o write_opt=nodir * .* >${_GEM_DATAFILE}; \
|
||||
cd ${_GEM_CONTENT} && tar -cf ${WRKDIR}/${_GEM_PATCHED} *.gz; \
|
||||
mkdir -p ${GEM_BASE}; \
|
||||
env -i ${MAKE_ENV} HOME=`dirname ${GEM_BASE}` GEM_HOME=${GEM_BASE} \
|
||||
|
Loading…
Reference in New Issue
Block a user