35 |
mirror://${PNAME}/${PNAME}-${PVER}-PR9869-operator-destructor.patch |
mirror://${PNAME}/${PNAME}-${PVER}-PR9869-operator-destructor.patch |
36 |
) |
) |
37 |
|
|
38 |
UP2DATE="updatecmd " |
UP2DATE="updatecmd ${HOMEPAGE} | grep 'Download now' | sed 's:.*][lL][lL][vV][mM]\ \(.*\):\1:'" |
39 |
|
|
40 |
src_prepare() |
src_prepare() |
41 |
{ |
{ |
42 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
43 |
|
|
44 |
# non-standard configure, fix config pathes, rpath and cflags |
# non-standard configure, fix config pathes, rpath and cflags |
45 |
all-abis 'sed -e "s,^PROJ_docsdir.*,PROJ_docsdir := \$(PROJ_prefix)/share/doc/${PNAME}-${PVER}," \ |
all-abis 'sed -e "s,^PROJ_docsdir.*,PROJ_docsdir := \$(PROJ_prefix)/share/doc/${PNAME}-${PVER}," -e "s,^PROJ_etcdir.*,PROJ_etcdir := ''/etc/llvm," -e "s,^PROJ_libdir.*,PROJ_libdir := \$(PROJ_prefix)/$(mlibdir)/${PNAME}," -i Makefile.config.in || die' |
46 |
-e "s,^PROJ_etcdir.*,PROJ_etcdir := ''/etc/llvm," \ |
all-abis 'sed -e "s,\$ABS_RUN_DIR/lib,/usr/$(mlibdir)/${PNAME}," -i tools/llvm-config/llvm-config.in.in || die' |
47 |
-e "s,^PROJ_libdir.*,PROJ_libdir := \$(PROJ_prefix)/$(mlibdir)/${PNAME}," \ |
all-abis 'sed -e "s,\$(RPATH) -Wl\,\$(\(ToolDir\|LibDir\)),\$(RPATH) -Wl\,/usr/$(mlibdir)/${PNAME}," -e "/OmitFramePointer/s/-fomit-frame-pointer//" -i Makefile.rules || die' |
|
-i Makefile.config.in || die' |
|
|
all-abis 'sed -e "s,\$ABS_RUN_DIR/lib,/usr/$(mlibdir)/${PNAME}," \ |
|
|
-i tools/llvm-config/llvm-config.in.in || die' |
|
|
all-abis 'sed -e "s,\$(RPATH) -Wl\,\$(\(ToolDir\|LibDir\)),\$(RPATH) -Wl\,/usr/$(mlibdir)/${PNAME}," \ |
|
|
-e "/OmitFramePointer/s/-fomit-frame-pointer//" \ |
|
|
-i Makefile.rules || die' |
|
48 |
|
|
49 |
# do not generate docs, which are just the man pages |
# do not generate docs, which are just the man pages |
50 |
mpatch ${PNAME}-${PVER}-no-docs.patch || die |
mpatch ${PNAME}-${PVER}-no-docs.patch || die |