fix typo
[openwrt/svn-archive/archive.git] / lang / twisted / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=twisted
12 PKG_VERSION:=2.5.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=Twisted-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://tmrc.mit.edu/mirror/twisted/Twisted/2.5
17 PKG_MD5SUM:=56df2ae66db57932515a491c03bf514f
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/Twisted-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22 include ../python/python-package.mk
23
24 define PyPackage/twisted/default
25 URL:=http://twistedmatrix.com/
26 endef
27
28 define PyPackage/twisted/default/description
29 Twisted is a networking engine written in Python, supporting numerous
30 protocols. It contains a web server, numerous chat clients, chat servers,
31 mail servers, and more.
32 endef
33
34 define PyPackage/twisted
35 $(call PyPackage/twisted/default)
36 TITLE:=Python networking engine
37 DEPENDS+= +zope-interface
38 endef
39
40 define PyPackage/twisted-conch
41 $(call PyPackage/twisted/default)
42 TITLE:=Twisted - Conch
43 DEPENDS+= twisted
44 endef
45
46 define PyPackage/twisted-lore
47 $(call PyPackage/twisted/default)
48 TITLE:=Twisted - Lore
49 DEPENDS+= twisted
50 endef
51
52 define PyPackage/twisted-mail
53 $(call PyPackage/twisted/default)
54 TITLE:=Twisted - Mail
55 DEPENDS+= twisted
56 endef
57
58 define PyPackage/twisted-names
59 $(call PyPackage/twisted/default)
60 TITLE:=Twisted - Names
61 DEPENDS+= twisted
62 endef
63
64 define PyPackage/twisted-news
65 $(call PyPackage/twisted/default)
66 TITLE:=Twisted - News
67 DEPENDS+= twisted
68 endef
69
70 define PyPackage/twisted-runner
71 $(call PyPackage/twisted/default)
72 TITLE:=Twisted - Runner
73 DEPENDS+= twisted
74 endef
75
76 define PyPackage/twisted-web
77 $(call PyPackage/twisted/default)
78 TITLE:=Twisted - Web
79 DEPENDS+= twisted
80 endef
81
82 define PyPackage/twisted-words
83 $(call PyPackage/twisted/default)
84 TITLE:=Twisted - Words
85 DEPENDS+= twisted
86 endef
87
88 define PyPackage/zope-interface
89 $(call PyPackage/twisted/default)
90 TITLE:=Zope interface
91 DESCRIPTION:=zope-interface
92 endef
93
94 TWISTED_SUPPROJECTS:=core
95
96 ZOPE_IF_VER=3.3.0
97
98 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-conch),)
99 TWISTED_SUBPROJECTS+=conch
100 endif
101 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-lore),)
102 TWISTED_SUBPROJECTS+=lore
103 endif
104 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-mail),)
105 TWISTED_SUBPROJECTS+=mail
106 endif
107 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-names),)
108 TWISTED_SUBPROJECTS+=names
109 endif
110 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-news),)
111 TWISTED_SUBPROJECTS+=news
112 endif
113 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-runner),)
114 TWISTED_SUBPROJECTS+=runner
115 endif
116 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-web),)
117 TWISTED_SUBPROJECTS+=web
118 endif
119 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-words),)
120 TWISTED_SUBPROJECTS+=words
121 endif
122
123
124 define Build/Configure
125 endef
126
127 define PyPackage/twisted/filespec
128 +|/usr/bin/mktap
129 +|/usr/bin/twistd
130 +|$(PYTHON_PKG_DIR)/twisted/application
131 +|$(PYTHON_PKG_DIR)/twisted/copyright.py
132 +|$(PYTHON_PKG_DIR)/twisted/cred
133 +|$(PYTHON_PKG_DIR)/twisted/enterprise
134 +|$(PYTHON_PKG_DIR)/twisted/im.py
135 +|$(PYTHON_PKG_DIR)/twisted/__init__.py
136 +|$(PYTHON_PKG_DIR)/twisted/internet
137 +|$(PYTHON_PKG_DIR)/twisted/manhole
138 +|$(PYTHON_PKG_DIR)/twisted/persisted
139 +|$(PYTHON_PKG_DIR)/twisted/plugin.py
140 +|$(PYTHON_PKG_DIR)/twisted/protocols
141 +|$(PYTHON_PKG_DIR)/twisted/python
142 +|$(PYTHON_PKG_DIR)/twisted/scripts
143 +|$(PYTHON_PKG_DIR)/twisted/spread
144 +|$(PYTHON_PKG_DIR)/twisted/tap
145 +|$(PYTHON_PKG_DIR)/twisted/trial
146 -|$(PYTHON_PKG_DIR)/twisted/trial/test
147 +|$(PYTHON_PKG_DIR)/twisted/_version.py
148 +|$(PYTHON_PKG_DIR)/twisted/plugins/dropin.cache
149 +|$(PYTHON_PKG_DIR)/twisted/plugins/__init__.py
150 +|$(PYTHON_PKG_DIR)/twisted/plugins/notestplugin.py
151 +|$(PYTHON_PKG_DIR)/twisted/plugins/testplugin.py
152 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_ftp.py
153 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_inet.py
154 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_manhole.py
155 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_portforward.py
156 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_reactors.py
157 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_socks.py
158 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_telnet.py
159 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_trial.py
160 endef
161
162 define PyPackage/twisted-conch/filespec
163 +|$(PYTHON_PKG_DIR)/twisted/conch
164 -|$(PYTHON_PKG_DIR)/twisted/conch/test
165 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_conch.py
166 endef
167
168 define PyPackage/twisted-lore/filespec
169 +|$(PYTHON_PKG_DIR)/twisted/lore
170 -|$(PYTHON_PKG_DIR)/twisted/lore/test
171 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_lore.py
172 endef
173
174 define PyPackage/twisted-mail/filespec
175 +|$(PYTHON_PKG_DIR)/twisted/mail
176 -|$(PYTHON_PKG_DIR)/twisted/mail/test
177 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_mail.py
178 endef
179
180 define PyPackage/twisted-names/filespec
181 +|$(PYTHON_PKG_DIR)/twisted/names
182 -|$(PYTHON_PKG_DIR)/twisted/names/test
183 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_names.py
184 endef
185
186 define PyPackage/twisted-news/filespec
187 +|$(PYTHON_PKG_DIR)/twisted/news
188 -|$(PYTHON_PKG_DIR)/twisted/news/test
189 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_news.py
190 endef
191
192 define PyPackage/twisted-runner/filespec
193 +|$(PYTHON_PKG_DIR)/twisted/runner
194 endef
195
196 define PyPackage/twisted-web/filespec
197 +|$(PYTHON_PKG_DIR)/twisted/web
198 -|$(PYTHON_PKG_DIR)/twisted/web/test
199 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_web.py
200 endef
201
202 define PyPackage/twisted-words/filespec
203 +|$(PYTHON_PKG_DIR)/twisted/words
204 -|$(PYTHON_PKG_DIR)/twisted/words/test
205 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_words.py
206 endef
207
208 define PyPackage/zope-interface/filespec
209 +|$(PYTHON_PKG_DIR)/zope
210 -|$(PYTHON_PKG_DIR)/zope/interface/tests
211 endef
212
213 define Build/Compile
214 $(call Build/Compile/PyMod,., \
215 install --prefix="$(PKG_INSTALL_DIR)/usr" --no-compile, \
216 TWISTED_SUBPROJECTS="$(TWISTED_SUBPROJECTS)" \
217 )
218 $(call Build/Compile/PyMod,zope.interface-$(ZOPE_IF_VER), \
219 install --prefix="$(PKG_INSTALL_DIR)/usr" --no-compile, \
220 )
221 $(SED) 's,#!$(PYTHON),#!/usr/bin/python,' $(PKG_INSTALL_DIR)/usr/bin/*
222 endef
223
224 $(eval $(call PyPackage,twisted))
225 $(eval $(call PyPackage,twisted-conch))
226 $(eval $(call PyPackage,twisted-lore))
227 $(eval $(call PyPackage,twisted-mail))
228 $(eval $(call PyPackage,twisted-names))
229 $(eval $(call PyPackage,twisted-news))
230 $(eval $(call PyPackage,twisted-runner))
231 $(eval $(call PyPackage,twisted-web))
232 $(eval $(call PyPackage,twisted-words))
233 $(eval $(call PyPackage,zope-interface))