dev-cpp/ctemplate: Bump to EAPI 6
[gentoo.git] / dev-cpp / ctemplate / files / ctemplate-2.3-fix-build-system.patch
1 * Do not override $(docdir) as userflag in the GNU conventions
2 * Only build tests programs when running 'make check'
3
4 --- a/Makefile.am
5 +++ b/Makefile.am
6 @@ -54,12 +54,11 @@
7         src/ctemplate/per_expand_data.h.in \
8         src/ctemplate/str_ref.h.in
9  
10 -docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
11  ## This is for HTML and other documentation you want to install.
12  ## Add your documentation files (in doc/) in addition to these
13  ## top-level boilerplate files.  Also add a TODO file if you have one.
14 -dist_doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README README_windows.txt \
15 -       doc/designstyle.css doc/index.html \
16 +dist_doc_DATA = AUTHORS ChangeLog NEWS README README_windows.txt
17 +dist_html_DATA = doc/designstyle.css doc/index.html \
18         doc/howto.html doc/guide.html doc/reference.html \
19         doc/tips.html doc/example.html doc/auto_escape.html \
20         doc/xss_resources.html
21 @@ -452,7 +451,7 @@
22  
23  ## This should always include $(TESTS), but may also include other
24  ## binaries that you compile but don't want automatically installed.
25 -noinst_PROGRAMS = $(TESTS)
26 +check_PROGRAMS = $(TESTS)
27  
28  rpm: dist-gzip packages/rpm.sh packages/rpm/rpm.spec
29         @cd packages && ./rpm.sh ${PACKAGE} ${VERSION}