Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 575404 Details for
Bug 616776
app-text/mandoc: ebuild improvements & man-db drop-in replacement
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Rebased patch on current tree
mandoc-ebuid.patch (text/plain), 2.76 KB, created by
Wolfgang Müller
on 2019-05-06 11:12:12 UTC
(
hide
)
Description:
Rebased patch on current tree
Filename:
MIME Type:
Creator:
Wolfgang Müller
Created:
2019-05-06 11:12:12 UTC
Size:
2.76 KB
patch
obsolete
>diff --git a/app-text/mandoc/files/mandoc.cron b/app-text/mandoc/files/mandoc.cron >new file mode 100644 >index 00000000000..20e6007ddad >--- /dev/null >+++ b/app-text/mandoc/files/mandoc.cron >@@ -0,0 +1,6 @@ >+#!/bin/sh >+ >+# we need this to have the right MANPATH set >+. /etc/profile >+ >+exec nice makewhatis >diff --git a/app-text/mandoc/mandoc-1.14.5.ebuild b/app-text/mandoc/mandoc-1.14.5.ebuild >index 4b5e8af2d4f..331dfe55c56 100644 >--- a/app-text/mandoc/mandoc-1.14.5.ebuild >+++ b/app-text/mandoc/mandoc-1.14.5.ebuild >@@ -12,21 +12,18 @@ SRC_URI="http://mdocml.bsd.lv/snapshots/${P}.tar.gz" > LICENSE="ISC" > SLOT="0" > KEYWORDS="~amd64 ~x86" >-IUSE="static" >+IUSE="+cron static" > > LIB_DEPEND="sys-libs/zlib[static-libs(+)]" >-RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" >+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} ) >+ !sys-apps/man-db !sys-apps/man" > DEPEND="${RDEPEND} > static? ( ${LIB_DEPEND} )" > > src_prepare() { > default > >- # The db-install change is to support parallel installs. >- sed -i \ >- -e '/ar rs/s:ar:$(AR):' \ >- -e '/^db-install:/s:$: base-install:' \ >- Makefile || die >+ sed -i -e '/ar rs/s:ar:$(AR):' Makefile || die > > cat <<-EOF > "configure.local" > PREFIX="${EPREFIX}/usr" >@@ -38,17 +35,10 @@ src_prepare() { > EXAMPLEDIR="${EPREFIX}/usr/share/examples/mandoc" > MANPATH_DEFAULT="${EPREFIX}/usr/man:${EPREFIX}/usr/share/man:${EPREFIX}/usr/local/man:${EPREFIX}/usr/local/share/man" > >- BINM_MAN=mman > BINM_SOELIM=msoelim >- BINM_APROPOS=mapropos >- BINM_WHATIS=mwhatis >- BINM_MAKEWHATIS=mmakewhatis > MANM_MAN=mandoc_man > MANM_MDOC=mandoc_mdoc > MANM_ROFF=mandoc_roff >- MANM_EQN=mandoc_eqn >- MANM_TBL=mandoc_tbl >- MANM_MANCONF=mman.conf > > CFLAGS="${CFLAGS} ${CPPFLAGS}" > LDFLAGS="${LDFLAGS} $(usex static -static '')" >@@ -58,3 +48,23 @@ src_prepare() { > STATIC= > EOF > } >+ >+src_install() { >+ default >+ >+ if use cron; then >+ exeinto /etc/cron.daily >+ newexe "${FILESDIR}"/mandoc.cron mandoc >+ fi >+} >+ >+pkg_postinst() { >+ elog "In order to enable mandoc's apropos and man -k functionality," >+ elog "the appropriate mandoc.db files need to be created. This can" >+ elog "be achieved by running makewhatis as root (Note: sudo will not" >+ elog "work, as it does not preserve the MANPATH environment variable" >+ elog "by default)." >+ elog >+ elog "If the cron use-flag is enabled, a cron.daily entry that calls" >+ elog "makewhatis will be installed." >+} >diff --git a/app-text/mandoc/metadata.xml b/app-text/mandoc/metadata.xml >index aebca33be17..51c909c5adb 100644 >--- a/app-text/mandoc/metadata.xml >+++ b/app-text/mandoc/metadata.xml >@@ -4,4 +4,7 @@ > <maintainer type="project"> > <email>base-system@gentoo.org</email> > </maintainer> >+<use> >+ <flag name="cron">Set up a cron script that updates mandoc.db files for apropos support.</flag> >+</use> > </pkgmetadata>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 616776
:
471102
|
513732
| 575404