1 |
Dne středa 25 Březen 2009 19:25:02 Peter Alfredsen napsal(a): |
2 |
I will just pick parts with notes. Some of them apply on more places :] |
3 |
|
4 |
> # @ECLASS-VARIABLE: HOMEPAGE |
5 |
> # @DESCRIPTION: |
6 |
> # HOMEPAGE is set to http://poppler.freedesktop.org |
7 |
> HOMEPAGE="http://poppler.freedesktop.org/" |
8 |
Why you describe the variable with default value? it shows up default value in |
9 |
the eclassdoc based on the real HOMEPAGE value, so it is just duplicating :] |
10 |
|
11 |
> # @FUNCTION: poppler_src_unpack |
12 |
> # @DESCRIPTION: |
13 |
> # Runs unpack ${A} |
14 |
> poppler_src_unpack() { |
15 |
> unpack ${A} |
16 |
> } |
17 |
Why not just use base_src_unpack |
18 |
> |
19 |
> # @FUNCTION: poppler_src_prepare |
20 |
> # @DESCRIPTION: |
21 |
> # Runs autopatch from base.eclass. |
22 |
> # Uses sed to replace libpoppler.la references with -lpoppler |
23 |
> poppler_src_prepare() { |
24 |
> base_src_util autopatch |
25 |
Why not rather use base_src_prepare |
26 |
> sed -i \ |
27 |
> -e 's#$(top_builddir)/poppler/libpoppler.la#-lpoppler#' \ |
28 |
> $(find . -type f -name 'Makefile.in') || die "Failed to sed proper lib |
29 |
> into Makefile.am" } |
30 |
Are you sure that the find is safe with soemthing like space in the path? ;] |
31 |
> |
32 |
> # @FUNCTION: poppler_src_configure |
33 |
> # @DESCRIPTION: |
34 |
> # Makes sure we get a uniform Makefile environment by using |
35 |
> pkg_check_modules_override to # fill out some blanks that configure wants |
36 |
> filled. Probably not really needed, but # insures against future breakage. |
37 |
> # Calls econf with some defaults. |
38 |
> poppler_src_configure() { |
39 |
> pkg_check_modules_override CAIRO cairo |
40 |
> pkg_check_modules_override POPPLER_GLIB glib-2.0 |
41 |
> pkg_check_modules_override POPPLER_QT4 QtCore QtGui QtXml |
42 |
> pkg_check_modules_override POPPLER_QT4_TEST QtTest |
43 |
> pkg_check_modules_override ABIWORD libxml-2.0 |
44 |
> pkg_check_modules_override GTK_TEST gtk+-2.0 gdk-pixbuf-2.0 libglade-2.0 |
45 |
> gthread-2.0 pkg_check_modules_override GDK gdk-2.0 |
46 |
> pkg_check_modules_override POPPLER_GLIB glib-2.0 gobject-2.0 |
47 |
> |
48 |
> econf --disable-static \ |
49 |
> --enable-gdk \ |
50 |
> --enable-poppler-qt4 \ |
51 |
> --enable-poppler-glib \ |
52 |
> --enable-poppler-qt \ |
53 |
> --enable-xpdf-headers \ |
54 |
> --enable-libjpeg \ |
55 |
> --enable-libopenjpeg \ |
56 |
> --enable-zlib \ |
57 |
> --enable-splash-output \ |
58 |
> ${POPPLER_CONF} \ |
59 |
> |
60 |
> || die "configuration failed" |
61 |
No need for die, it dies itself. |
62 |
> |
63 |
> } |
64 |
|
65 |
Cheers |
66 |
Tomas |