DESCRIPTION:= is obselete
[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 endef
92
93 TWISTED_SUPPROJECTS:=core
94
95 ZOPE_IF_VER=3.3.0
96
97 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-conch),)
98 TWISTED_SUBPROJECTS+=conch
99 endif
100 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-lore),)
101 TWISTED_SUBPROJECTS+=lore
102 endif
103 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-mail),)
104 TWISTED_SUBPROJECTS+=mail
105 endif
106 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-names),)
107 TWISTED_SUBPROJECTS+=names
108 endif
109 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-news),)
110 TWISTED_SUBPROJECTS+=news
111 endif
112 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-runner),)
113 TWISTED_SUBPROJECTS+=runner
114 endif
115 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-web),)
116 TWISTED_SUBPROJECTS+=web
117 endif
118 ifneq ($(SDK)$(CONFIG_PACKAGE_twisted-words),)
119 TWISTED_SUBPROJECTS+=words
120 endif
121
122
123 define Build/Configure
124 endef
125
126 define PyPackage/twisted/filespec
127 +|/usr/bin/mktap
128 +|/usr/bin/twistd
129 +|$(PYTHON_PKG_DIR)/twisted/application
130 +|$(PYTHON_PKG_DIR)/twisted/copyright.py
131 +|$(PYTHON_PKG_DIR)/twisted/cred
132 +|$(PYTHON_PKG_DIR)/twisted/enterprise
133 +|$(PYTHON_PKG_DIR)/twisted/im.py
134 +|$(PYTHON_PKG_DIR)/twisted/__init__.py
135 +|$(PYTHON_PKG_DIR)/twisted/internet
136 +|$(PYTHON_PKG_DIR)/twisted/manhole
137 +|$(PYTHON_PKG_DIR)/twisted/persisted
138 +|$(PYTHON_PKG_DIR)/twisted/plugin.py
139 +|$(PYTHON_PKG_DIR)/twisted/protocols
140 +|$(PYTHON_PKG_DIR)/twisted/python
141 +|$(PYTHON_PKG_DIR)/twisted/scripts
142 +|$(PYTHON_PKG_DIR)/twisted/spread
143 +|$(PYTHON_PKG_DIR)/twisted/tap
144 +|$(PYTHON_PKG_DIR)/twisted/trial
145 -|$(PYTHON_PKG_DIR)/twisted/trial/test
146 +|$(PYTHON_PKG_DIR)/twisted/_version.py
147 +|$(PYTHON_PKG_DIR)/twisted/plugins/dropin.cache
148 +|$(PYTHON_PKG_DIR)/twisted/plugins/__init__.py
149 +|$(PYTHON_PKG_DIR)/twisted/plugins/notestplugin.py
150 +|$(PYTHON_PKG_DIR)/twisted/plugins/testplugin.py
151 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_ftp.py
152 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_inet.py
153 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_manhole.py
154 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_portforward.py
155 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_reactors.py
156 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_socks.py
157 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_telnet.py
158 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_trial.py
159 endef
160
161 define PyPackage/twisted-conch/filespec
162 +|$(PYTHON_PKG_DIR)/twisted/conch
163 -|$(PYTHON_PKG_DIR)/twisted/conch/test
164 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_conch.py
165 endef
166
167 define PyPackage/twisted-lore/filespec
168 +|$(PYTHON_PKG_DIR)/twisted/lore
169 -|$(PYTHON_PKG_DIR)/twisted/lore/test
170 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_lore.py
171 endef
172
173 define PyPackage/twisted-mail/filespec
174 +|$(PYTHON_PKG_DIR)/twisted/mail
175 -|$(PYTHON_PKG_DIR)/twisted/mail/test
176 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_mail.py
177 endef
178
179 define PyPackage/twisted-names/filespec
180 +|$(PYTHON_PKG_DIR)/twisted/names
181 -|$(PYTHON_PKG_DIR)/twisted/names/test
182 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_names.py
183 endef
184
185 define PyPackage/twisted-news/filespec
186 +|$(PYTHON_PKG_DIR)/twisted/news
187 -|$(PYTHON_PKG_DIR)/twisted/news/test
188 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_news.py
189 endef
190
191 define PyPackage/twisted-runner/filespec
192 +|$(PYTHON_PKG_DIR)/twisted/runner
193 endef
194
195 define PyPackage/twisted-web/filespec
196 +|$(PYTHON_PKG_DIR)/twisted/web
197 -|$(PYTHON_PKG_DIR)/twisted/web/test
198 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_web.py
199 endef
200
201 define PyPackage/twisted-words/filespec
202 +|$(PYTHON_PKG_DIR)/twisted/words
203 -|$(PYTHON_PKG_DIR)/twisted/words/test
204 +|$(PYTHON_PKG_DIR)/twisted/plugins/twisted_words.py
205 endef
206
207 define PyPackage/zope-interface/filespec
208 +|$(PYTHON_PKG_DIR)/zope
209 -|$(PYTHON_PKG_DIR)/zope/interface/tests
210 endef
211
212 define Build/Compile
213 $(call Build/Compile/PyMod,., \
214 install --prefix="$(PKG_INSTALL_DIR)/usr" --no-compile, \
215 TWISTED_SUBPROJECTS="$(TWISTED_SUBPROJECTS)" \
216 )
217 $(call Build/Compile/PyMod,zope.interface-$(ZOPE_IF_VER), \
218 install --prefix="$(PKG_INSTALL_DIR)/usr" --no-compile, \
219 )
220 $(SED) 's,#!$(PYTHON),#!/usr/bin/python,' $(PKG_INSTALL_DIR)/usr/bin/*
221 endef
222
223 $(eval $(call PyPackage,twisted))
224 $(eval $(call PyPackage,twisted-conch))
225 $(eval $(call PyPackage,twisted-lore))
226 $(eval $(call PyPackage,twisted-mail))
227 $(eval $(call PyPackage,twisted-names))
228 $(eval $(call PyPackage,twisted-news))
229 $(eval $(call PyPackage,twisted-runner))
230 $(eval $(call PyPackage,twisted-web))
231 $(eval $(call PyPackage,twisted-words))
232 $(eval $(call PyPackage,zope-interface))