Norm Jacobs
2012-03-28 7d22b7a4ef14509ace539c0a4a888db9cd475ff5
commit | author | age
59c102 1 #
AC 2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20
21 #
e3b3f6 22 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
59c102 23 #
AC 24
25 include ../../make-rules/shared-macros.mk
26
27 COMPONENT_NAME=        pylint
28 COMPONENT_VERSION=    0.18.0
29 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
30 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
31 COMPONENT_ARCHIVE_HASH=    sha1:5d54ae25c29cdcab7bdfaef87e5f5ed2cc183b75
32 COMPONENT_ARCHIVE_URL=    http://ftp.logilab.org/pub/pylint/$(COMPONENT_ARCHIVE)
33 COMPONENT_PROJECT_URL=  http://www.logilab.org/project/pylint/
34
35 include $(WS_TOP)/make-rules/prep.mk
36 include $(WS_TOP)/make-rules/ips.mk
37 include $(WS_TOP)/make-rules/setup.py.mk
38
e3b3f6 39 # There are several pylint documentation files that setup.py isn't installing
RB 40 # but are present in the pylint package on other distributions. Copy them into
41 # the proto area "manually", so they can be included in the package.
42 PDOC =            $(PROTO_DIR)/usr/share/doc
43 PDOC_PYLINT =        $(PDOC)/pylint
44 PDOC_PYLINT_EXAMPLES =    $(PDOC_PYLINT)/examples
45
46 COMPONENT_POST_INSTALL_ACTION += \
47     $(MKDIR) $(PDOC_PYLINT) ;
48 COMPONENT_POST_INSTALL_ACTION += \
49     $(CP) $(COMPONENT_SRC)/doc/beginner_pylint_tutorial.txt $(PDOC_PYLINT) ;
50 COMPONENT_POST_INSTALL_ACTION += \
51     $(CP) $(COMPONENT_SRC)/doc/FAQ.txt $(PDOC_PYLINT) ;
52 COMPONENT_POST_INSTALL_ACTION += \
53     $(CP) $(COMPONENT_SRC)/doc/features.txt $(PDOC_PYLINT) ;
54 COMPONENT_POST_INSTALL_ACTION += \
55     $(CP) $(COMPONENT_SRC)/doc/manual.txt $(PDOC_PYLINT) ;
56 COMPONENT_POST_INSTALL_ACTION += \
57     $(CP) $(COMPONENT_SRC)/doc/quickstart.txt $(PDOC_PYLINT) ;
58 COMPONENT_POST_INSTALL_ACTION += \
59     $(CP) $(COMPONENT_SRC)/README $(PDOC_PYLINT) ;
60
61 COMPONENT_POST_INSTALL_ACTION += \
62     $(MKDIR) $(PDOC_PYLINT_EXAMPLES) ;
63 COMPONENT_POST_INSTALL_ACTION += \
64     $(CP) $(COMPONENT_SRC)/examples/custom.py $(PDOC_PYLINT_EXAMPLES) ;
65 COMPONENT_POST_INSTALL_ACTION += \
66     $(CP) $(COMPONENT_SRC)/examples/custom_raw.py $(PDOC_PYLINT_EXAMPLES) ;
67 COMPONENT_POST_INSTALL_ACTION += \
68     $(CP) $(COMPONENT_SRC)/elisp/pylint.el $(PDOC_PYLINT_EXAMPLES) ;
69 COMPONENT_POST_INSTALL_ACTION += \
70     $(CP) $(COMPONENT_SRC)/examples/pylintrc_camelcase $(PDOC_PYLINT_EXAMPLES) ;
71 COMPONENT_POST_INSTALL_ACTION += \
72     $(CP) $(COMPONENT_SRC)/examples/pylintrc $(PDOC_PYLINT_EXAMPLES) ;
7d22b7 73 COMPONENT_POST_INSTALL_ACTION += \
NJ 74     (cd $(PROTO_DIR)/usr/bin; $(MV) epylint epylint-$(PYTHON_VERSION)) ;
75 COMPONENT_POST_INSTALL_ACTION += \
76     (cd $(PROTO_DIR)/usr/bin; $(MV) pylint pylint-$(PYTHON_VERSION)) ;
77 COMPONENT_POST_INSTALL_ACTION += \
78     (cd $(PROTO_DIR)/usr/bin; $(MV) pylint-gui pylint-gui-$(PYTHON_VERSION)) ;
79 COMPONENT_POST_INSTALL_ACTION += \
80     (cd $(PROTO_DIR)/usr/bin; $(MV) pyreverse pyreverse-$(PYTHON_VERSION)) ;
81 COMPONENT_POST_INSTALL_ACTION += \
82     (cd $(PROTO_DIR)/usr/bin; $(MV) symilar symilar-$(PYTHON_VERSION)) ;
e3b3f6 83
RB 84
59c102 85 # common targets
AC 86
87 build:        $(BUILD_32)
88
89 install:    $(INSTALL_32)
90
91 test:        $(TEST_32)
92
93 BUILD_PKG_DEPENDENCIES =    $(BUILD_TOOLS)
94
95 include $(WS_TOP)/make-rules/depend.mk