mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Remove @dirrm* from (often automatically generated) plists of GHC and
all the Haskell Cabal ports Obtained from: FreeBSD Haskell
This commit is contained in:
parent
0140b8ea91
commit
0a3a15d303
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=372425
@ -259,10 +259,6 @@ post-install-script:
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${ECHO} '@exec ${SH} -c "cd %D/${DOCSDIR_REL}/html/libraries && ./gen_contents_index"' >> ${TMPPLIST}
|
||||
.endif
|
||||
@${FIND} -ds ${STAGEDIR}${DOCSDIR} -type d -print | ${SED} -E -e \
|
||||
's,^${STAGEDIR}${PREFIX}/?,@dirrm ,' >> ${TMPPLIST}
|
||||
@${FIND} -ds ${GHC_LIBDIR} -type d -print | ${SED} -E -e \
|
||||
's,^${STAGEDIR}${PREFIX}/?,@dirrm ,' >> ${TMPPLIST}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|; \
|
||||
|
@ -303,18 +303,9 @@ post-install-script:
|
||||
.for exe in ${EXECUTABLE}
|
||||
@${ECHO_CMD} 'bin/${exe}' >>${TMPPLIST}
|
||||
.endfor
|
||||
.if defined(STANDALONE) && !${PORT_OPTIONS:MDYNAMIC}
|
||||
@for dir in lib share share/doc share/examples; do \
|
||||
if [ -d ${STAGEDIR}${PREFIX}/$${dir}/cabal/ghc-${GHC_VERSION} ]; then \
|
||||
echo "@dirrmtry $${dir}/cabal/ghc-${GHC_VERSION}" >> ${TMPPLIST}; fi ; \
|
||||
if [ -d ${STAGEDIR}${PREFIX}/$${dir}/cabal ]; then \
|
||||
echo "@dirrmtry $${dir}/cabal" >> ${TMPPLIST}; fi ; done
|
||||
.endif
|
||||
.endif # EXECUTABLE
|
||||
@for dir in ${CABAL_DIRS}; do if [ -d ${STAGEDIR}$${dir} ]; then ${FIND} -ds ${STAGEDIR}$${dir} \
|
||||
-type f -print | ${SED} -E -e 's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST}; fi ; \
|
||||
if [ -d ${STAGEDIR}$${dir} ]; then ${FIND} -ds ${STAGEDIR}$${dir} \
|
||||
-type d -print | ${SED} -E -e 's,^${STAGEDIR}${PREFIX}/?,@dirrm ,' >> ${TMPPLIST}; fi ; done
|
||||
-type f -print | ${SED} -E -e 's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST}; fi ; done
|
||||
.endif # target(post-install-script)
|
||||
|
||||
.if !defined(METAPORT)
|
||||
|
@ -18,11 +18,3 @@ bin/runghc-%%GHC_VERSION%%
|
||||
@exec /bin/mkdir -p %D/share/cabal/ghc-%%GHC_VERSION%% || return true
|
||||
@exec /bin/mkdir -p %D/share/doc/cabal/ghc-%%GHC_VERSION%% || return true
|
||||
@exec /bin/mkdir -p %D/share/examples/cabal/ghc-%%GHC_VERSION%% || return true
|
||||
@dirrmtry lib/cabal/ghc-%%GHC_VERSION%%
|
||||
@dirrmtry lib/cabal
|
||||
@dirrmtry share/cabal/ghc-%%GHC_VERSION%%
|
||||
@dirrmtry share/cabal
|
||||
@dirrmtry share/doc/cabal/ghc-%%GHC_VERSION%%
|
||||
@dirrmtry share/doc/cabal
|
||||
@dirrmtry share/examples/cabal/ghc-%%GHC_VERSION%%
|
||||
@dirrmtry share/examples/cabal
|
||||
|
Loading…
Reference in New Issue
Block a user