| 193 | variant subtree description {Install git subtree tools from contrib} { |
| 194 | # Ideally, we shouldn't make people install asciidoc and xmlto to get one |
| 195 | # manpage for one small, optional piece of git. Filed a bug for git to ship |
| 196 | # with the man page by default. |
| 197 | # https://code.google.com/p/git-core/issues/detail?id=18 |
| 198 | depends_lib-append port:asciidoc |
| 199 | depends_lib-append port:xmlto |
| 200 | |
| 201 | post-build { |
| 202 | system -W "${worksrcpath}/contrib/subtree" "make" |
| 203 | |
| 204 | system -W "${worksrcpath}/contrib/subtree" \ |
| 205 | "asciidoc -b docbook -d manpage -f ../../Documentation/asciidoc.conf -agit_version=${version} git-subtree.txt" |
| 206 | |
| 207 | system -W "${worksrcpath}/contrib/subtree" \ |
| 208 | "xmlto -m ../../Documentation/manpage-normal.xsl man git-subtree.xml" |
| 209 | } |
| 210 | |
| 211 | pre-destroot { |
| 212 | xinstall -d "${destroot}${prefix}/libexec/git-core/" |
| 213 | xinstall -m 755 "${worksrcpath}/contrib/subtree/git-subtree" \ |
| 214 | "${destroot}${prefix}/libexec/git-core/git-subtree" |
| 215 | |
| 216 | xinstall -d "${destroot}${prefix}/share/man/man1/" |
| 217 | xinstall -m 644 "${worksrcpath}/contrib/subtree/git-subtree.1" \ |
| 218 | "${destroot}${prefix}/share/man/man1/git-subtree.1" |
| 219 | |
| 220 | system -W "${worksrcpath}/contrib/subtree" "make clean" |
| 221 | } |
| 222 | } |
| 223 | |