pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Many packages: Switch to MASTER_SITES_PYPI.



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Wed Jun 8 19:41:18 2016 +0200
Changeset:	a34ab40c8ab51410e5a15506a90beaf0aacc76eb

Modified Files:
	gtimelog/Makefile
	mps-youtube/Makefile
	pdfminer/Makefile
	pudb/Makefile
	py-Beaker/Makefile
	py-Kallithea/Makefile
	py-RXP/Makefile
	py-SQLObject/Makefile
	py-abcpmc/Makefile
	py-achemkit/Makefile
	py-acq4/Makefile
	py-addons/Makefile
	py-adsbibdesk/Makefile
	py-aesthete/Makefile
	py-affine/Makefile
	py-agio/Makefile
	py-aikif/Makefile
	py-aipy/Makefile
	py-alembic/Makefile
	py-alfanous/Makefile
	py-algebraic/Makefile
	py-algebraixlib/Makefile
	py-algopy/Makefile
	py-amqplib/Makefile
	py-aopython/Makefile
	py-appdirs/Makefile
	py-applpy/Makefile
	py-aqopa/Makefile
	py-arabic/Makefile
	py-argh/Makefile
	py-ars/Makefile
	py-arxiv2bib/Makefile
	py-arxvier/Makefile
	py-asciimathml/Makefile
	py-ass/Makefile
	py-astropysics/Makefile
	py-async/Makefile
	py-atmark/Makefile
	py-atmos/Makefile
	py-atom/Makefile
	py-atomicfile/Makefile
	py-automata/Makefile
	py-baron/Makefile
	py-bcolz/Makefile
	py-bctpy/Makefile
	py-behaviour/Makefile
	py-bibtexparser3/Makefile
	py-bidict/Makefile
	py-bigfloat/Makefile
	py-biofrills/Makefile
	py-bip/Makefile
	py-bitarray/Makefile
	py-bitsets/Makefile
	py-blaze/Makefile
	py-blessings/Makefile
	py-blosc/Makefile
	py-bloscpack/Makefile
	py-bokeh/Makefile
	py-booktype/Makefile
	py-bottleneck/Makefile
	py-bravo/Makefile
	py-brewer2mpl/Makefile
	py-brian/Makefile
	py-bxa/Makefile
	py-bytecodeassembler/Makefile
	py-calphad/Makefile
	py-cameo/Makefile
	py-cartopy/Makefile
	py-cbc/Makefile
	py-ccdproc/Makefile
	py-cclib/Makefile
	py-ccuracy/Makefile
	py-cerridwen/Makefile
	py-cf-python/Makefile
	py-chaintipy/Makefile
	py-chebpy/Makefile
	py-chemlab/Makefile
	py-chemview/Makefile
	py-chinup/Makefile
	py-chompack/Makefile
	py-ciabatta/Makefile
	py-cito/Makefile
	py-clickatell/Makefile
	py-cliff/Makefile
	py-cligj/Makefile
	py-clint/Makefile
	py-clnum/Makefile
	py-clonedigger-jl/Makefile
	py-clonedigger/Makefile
	py-cloudlib/Makefile
	py-cma/Makefile
	py-cmd2/Makefile
	py-cobra/Makefile
	py-codepy/Makefile
	py-cogapp/Makefile
	py-cogent/Makefile
	py-colorlog/Makefile
	py-complexsystems/Makefile
	py-concepts/Makefile
	py-conda-env/Makefile
	py-conda/Makefile
	py-consensus/Makefile
	py-corpus/Makefile
	py-corrfitter/Makefile
	py-cosat/Makefile
	py-cosmolopy/Makefile
	py-coveralls/Makefile
	py-crontab/Makefile
	py-cryptoim/Makefile
	py-csa/Makefile
	py-csb/Makefile
	py-cscope/Makefile
	py-cse/Makefile
	py-ctutils/Makefile
	py-cubicweb/Makefile
	py-cvxpy/Makefile
	py-cxnet/Makefile
	py-cxvpy/Makefile
	py-cythongsl/Makefile
	py-cytoolz/Makefile
	py-da/Makefile
	py-dana/Makefile
	py-das/Makefile
	py-datarray/Makefile
	py-datatree/Makefile
	py-dclab/Makefile
	py-dcpf/Makefile
	py-debacl/Makefile
	py-decimalpy/Makefile
	py-decode/Makefile
	py-decoratortools/Makefile
	py-delny/Makefile
	py-deltasigma/Makefile
	py-dependenpy/Makefile
	py-descartes/Makefile
	py-dexml/Makefile
	py-dexy/Makefile
	py-dexy_viewer/Makefile
	py-digraphtools/Makefile
	py-dill/Makefile
	py-dimarray/Makefile
	py-divisi2/Makefile
	py-dj-static/Makefile
	py-django-audiofield/Makefile
	py-django-gitrevision/Makefile
	py-django-helmholtz/Makefile
	py-django-markwhat/Makefile
	py-django-mathjax/Makefile
	py-django-nose/Makefile
	py-django-quran/Makefile
	py-django-uuidfield/Makefile
	py-djangopypi2/Makefile
	py-djvulibre/Makefile
	py-djvusmooth/Makefile
	py-dolo/Makefile
	py-drawnow/Makefile
	py-dsltools/Makefile
	py-dubins/Makefile
	py-easydev/Makefile
	py-easymodeler/Makefile
	py-ecos/Makefile
	py-emcee/Makefile
	py-emmsa/Makefile
	py-empirical/Makefile
	py-enre/Makefile
	py-epigrass/Makefile
	py-epipy/Makefile
	py-equation/Makefile
	py-errorhandler/Makefile
	py-escher/Makefile
	py-etmtk/Makefile
	py-eventlet/Makefile
	py-exocode/Makefile
	py-extremes/Makefile
	py-faker/Makefile
	py-fanova/Makefile
	py-fatiando/Makefile
	py-fdasrsf/Makefile
	py-fealty/Makefile
	py-fedmsg/Makefile
	py-fiona/Makefile
	py-fipy/Makefile
	py-fitsarray/Makefile
	py-fjd/Makefile
	py-flipper/Makefile
	py-fluiddyn/Makefile
	py-fnss/Makefile
	py-fortpy/Makefile
	py-fs/Makefile
	py-fssa/Makefile
	py-functions/Makefile
	py-fuzzpy/Makefile
	py-fwm-ensayo/Makefile
	py-galry/Makefile
	py-gammafit/Makefile
	py-gaphas/Makefile
	py-gato/Makefile
	py-gauss/Makefile
	py-genesis/Makefile
	py-geographiclib/Makefile
	py-geoip/Makefile
	py-geopy/Makefile
	py-ghalatawi/Makefile
	py-git/Makefile
	py-gitdb/Makefile
	py-gitpython/Makefile
	py-glespy/Makefile
	py-gmane/Makefile
	py-gmpy2/Makefile
	py-gnm/Makefile
	py-go/Makefile
	py-goreutilities/Makefile
	py-goulib/Makefile
	py-grab/Makefile
	py-graphmin/Makefile
	py-graphsim/Makefile
	py-gratelpy/Makefile
	py-gravipy/Makefile
	py-grpy/Makefile
	py-gsw/Makefile
	py-guppy/Makefile
	py-gvar/Makefile
	py-gwpy/Makefile
	py-hamilton/Makefile
	py-hcluster/Makefile
	py-hddm/Makefile
	py-hdf5able/Makefile
	py-hdf5storage/Makefile
	py-helio/Makefile
	py-hgapi/Makefile
	py-hieroglyph/Makefile
	py-holoviews/Makefile
	py-hope/Makefile
	py-hurry-filesize/Makefile
	py-hyperspy/Makefile
	py-ibis/Makefile
	py-icane/Makefile
	py-ift-nifty/Makefile
	py-igraph/Makefile
	py-imread/Makefile
	py-imreg-dft/Makefile
	py-inflection/Makefile
	py-inspyred/Makefile
	py-ioflo/Makefile
	py-ionize/Makefile
	py-iprogress/Makefile
	py-ipython-sql/Makefile
	py-irco/Makefile
	py-jbessel/Makefile
	py-jedi/Makefile
	py-jelly/Makefile
	py-jewish/Makefile
	py-jsonrequester/Makefile
	py-jsonschema/Makefile
	py-kabuki/Makefile
	py-khayyam/Makefile
	py-kineticlib/Makefile
	py-kitchen/Makefile
	py-kivy/Makefile
	py-kiwisolver/Makefile
	py-krylov/Makefile
	py-krypy/Makefile
	py-larlib/Makefile
	py-larry/Makefile
	py-latexcodec/Makefile
	py-lazy-object-proxy/Makefile
	py-lds/Makefile
	py-lea/Makefile
	py-lib/Makefile
	py-liblzma/Makefile
	py-librabbitmq/Makefile
	py-libtextcat/Makefile
	py-lifelines/Makefile
	py-linearalgebra/Makefile
	py-lingpy/Makefile
	py-linop/Makefile
	py-lire/Makefile
	py-liveplots/Makefile
	py-llfuse/Makefile
	py-locustio/Makefile
	py-logbook/Makefile
	py-loggly/Makefile
	py-logilab-database/Makefile
	py-logtools/Makefile
	py-louie/Makefile
	py-lrparsing/Makefile
	py-lsqfit/Makefile
	py-luminous/Makefile
	py-lzma/Makefile
	py-m2ext/Makefile
	py-mahotas/Makefile
	py-mando/Makefile
	py-mark/Makefile
	py-markovchain/Makefile
	py-mathjspy/Makefile
	py-matplottheme/Makefile
	py-mave/Makefile
	py-mcerp/Makefile
	py-mcint/Makefile
	py-mcview/Makefile
	py-meigo/Makefile
	py-mendeleev/Makefile
	py-metropack/Makefile
	py-minepy/Makefile
	py-mipp/Makefile
	py-mistune/Makefile
	py-mne/Makefile
	py-mochi/Makefile
	py-modargs/Makefile
	py-moksha-common/Makefile
	py-moksha-hub/Makefile
	py-monad/Makefile
	py-monty/Makefile
	py-mox/Makefile
	py-moya/Makefile
	py-mplh5canvas/Makefile
	py-mpop/Makefile
	py-msdas/Makefile
	py-mssql2/Makefile
	py-msumastro/Makefile
	py-multichain_mcmc/Makefile
	py-multimethods/Makefile
	py-mvpoly/Makefile
	py-naftawayh/Makefile
	py-naima/Makefile
	py-natsort/Makefile
	py-ncomb/Makefile
	py-ncpol2sdpa/Makefile
	py-neo/Makefile
	py-netcdf4/Makefile
	py-netflowvizu/Makefile
	py-neupy/Makefile
	py-neurolab/Makefile
	py-neuronpy/Makefile
	py-nexpy/Makefile
	py-ngf/Makefile
	py-nibabel/Makefile
	py-nilearn/Makefile
	py-nimfa/Makefile
	py-nipy/Makefile
	py-nlib/Makefile
	py-nodepy/Makefile
	py-nose-senario/Makefile
	py-nptdms/Makefile
	py-nuitka/Makefile
	py-numberjack/Makefile
	py-numdifftools/Makefile
	py-numericalunits/Makefile
	py-nupic/Makefile
	py-ocrodjvu/Makefile
	py-oct2py/Makefile
	py-ode/Makefile
	py-odeint/Makefile
	py-odesys/Makefile
	py-odeviz/Makefile
	py-okpy/Makefile
	py-ontopy/Makefile
	py-openopt/Makefile
	py-opentmm/Makefile
	py-ordered-set/Makefile
	py-ordereddict/Makefile
	py-oset/Makefile
	py-otb/Makefile
	py-owslib/Makefile
	py-paegan/Makefile
	py-pafy/Makefile
	py-papy/Makefile
	py-parakeet/Makefile
	py-param/Makefile
	py-parameters/Makefile
	py-paramunittest/Makefile
	py-path.py/Makefile
	py-pathlib/Makefile
	py-patsy/Makefile
	py-pdef/Makefile
	py-pdfposter/Makefile
	py-peru/Makefile
	py-pet/Makefile
	py-pint/Makefile
	py-piquant/Makefile
	py-plete/Makefile
	py-plex/Makefile
	py-pmi/Makefile
	py-postmarkup/Makefile
	py-pot/Makefile
	py-prayertime/Makefile
	py-premailer/Makefile
	py-prioritized-methods/Makefile
	py-processing/Makefile
	py-prody/Makefile
	py-psamm/Makefile
	py-pseudopy/Makefile
	py-ptrace/Makefile
	py-pulsar/Makefile
	py-pweave/Makefile
	py-pyamf/Makefile
	py-pydy-viz/Makefile
	py-pydy/Makefile
	py-pyec/Makefile
	py-pygit2/Makefile
	py-pykit-sci/Makefile
	py-pylons/Makefile
	py-pymbolic/Makefile
	py-pymc/Makefile
	py-pynn/Makefile
	py-pyon/Makefile
	py-pyphant/Makefile
	py-pypi-cli/Makefile
	py-pyrr/Makefile
	py-pysal/Makefile
	py-pysb/Makefile
	py-pyslha/Makefile
	py-pysph/Makefile
	py-pyswisseph/Makefile
	py-python-application/Makefile
	py-python-gnutls/Makefile
	py-pytkgen/Makefile
	py-pytools/Makefile
	py-pyvib2/Makefile
	py-qalsadi/Makefile
	py-qeutil/Makefile
	py-qit/Makefile
	py-qmath/Makefile
	py-qnet/Makefile
	py-quantities/Makefile
	py-quaternionarray/Makefile
	py-quepy/Makefile
	py-radon/Makefile
	py-radontea/Makefile
	py-raphrase/Makefile
	py-rasterio/Makefile
	py-raven/Makefile
	py-rdf/Makefile
	py-rdflib-django/Makefile
	py-rdopkg/Makefile
	py-rdoupdate/Makefile
	py-rebound/Makefile
	py-recluse/Makefile
	py-redbaron/Makefile
	py-reducer/Makefile
	py-regex/Makefile
	py-report/Makefile
	py-repoze.tm2/Makefile
	py-restkit/Makefile
	py-rf/Makefile
	py-rogues/Makefile
	py-ropemode/Makefile
	py-rpaths/Makefile
	py-rql/Makefile
	py-rsistent/Makefile
	py-ruffus/Makefile
	py-sas7bdat/Makefile
	py-sasa/Makefile
	py-scikit-aero/Makefile
	py-scikit-image/Makefile
	py-scikit-learn/Makefile
	py-scikit-monaco/Makefile
	py-scikit-nano/Makefile
	py-scikits-bvp_solver/Makefile
	py-scikits_ann/Makefile
	py-scikits_bvp1lg/Makefile
	py-scikits_datasmooth/Makefile
	py-scikits_image/Makefile
	py-scikits_optimization/Makefile
	py-scikits_samplerate/Makefile
	py-scikits_scattpy/Makefile
	py-scikits_talkbox/Makefile
	py-scikits_vectorplot/Makefile
	py-sciproc/Makefile
	py-scipy-data_fitting/Makefile
	py-scp/Makefile
	py-screenutils/Makefile
	py-scs/Makefile
	py-sdeint/Makefile
	py-sdt_metrics/Makefile
	py-seaborn/Makefile
	py-selection/Makefile
	py-selenium/Makefile
	py-semidbm/Makefile
	py-sempy/Makefile
	py-sentry/Makefile
	py-sep/Makefile
	py-setupdocs/Makefile
	py-setuptools_git/Makefile
	py-shapely/Makefile
	py-shutilwhich/Makefile
	py-sima/Makefile
	py-simplegeneric/Makefile
	py-simulators/Makefile
	py-sleekxmpp/Makefile
	py-slowaes/Makefile
	py-smcp/Makefile
	py-smell/Makefile
	py-smmap/Makefile
	py-smop/Makefile
	py-snappy/Makefile
	py-socksipy-branch/Makefile
	py-sode/Makefile
	py-sofa/Makefile
	py-solpy/Makefile
	py-speview/Makefile
	py-sphereTS/Makefile
	py-sphinxreport/Makefile
	py-sphviewer/Makefile
	py-sppy/Makefile
	py-sqlalchemy-searchable/Makefile
	py-ssp/Makefile
	py-stache/Makefile
	py-statsmodels/Makefile
	py-stevedore/Makefile
	py-strategies/Makefile
	py-sumatra/Makefile
	py-sunpy/Makefile
	py-symath/Makefile
	py-symboltype/Makefile
	py-tablib-garetjax/Makefile
	py-tardis-sn/Makefile
	py-tashaphyne/Makefile
	py-tasphyne/Makefile
	py-teafiles/Makefile
	py-thLib/Makefile
	py-theano/Makefile
	py-thermopy/Makefile
	py-tinydb/Makefile
	py-tkinter-help/Makefile
	py-tklsystem/Makefile
	py-tmux/Makefile
	py-toeplitz/Makefile
	py-toolz/Makefile
	py-toro/Makefile
	py-toscawidgets/Makefile
	py-transaction/Makefile
	py-translationstring/Makefile
	py-trollius/Makefile
	py-tsgeom/Makefile
	py-ttk/Makefile
	py-turbojson/Makefile
	py-twilio/Makefile
	py-txWS/Makefile
	py-txZMQ/Makefile
	py-txdbus/Makefile
	py-typedecorator/Makefile
	py-umalqurra/Makefile
	py-uncertainties/Makefile
	py-uptime/Makefile
	py-usagestats/Makefile
	py-user_agent/Makefile
	py-utilib_common/Makefile
	py-utilib_component_app/Makefile
	py-utilib_component_config/Makefile
	py-utilib_component_core/Makefile
	py-utilib_component_executables/Makefile
	py-utilib_component_loader/Makefile
	py-utilib_enum/Makefile
	py-utilib_excel/Makefile
	py-utilib_math/Makefile
	py-utilib_misc/Makefile
	py-utilib_ply/Makefile
	py-uuid/Makefile
	py-validictory/Makefile
	py-vanity/Makefile
	py-varify/Makefile
	py-vcversioner/Makefile
	py-vdirsyncer-git/Makefile
	py-vegas/Makefile
	py-venusian/Makefile
	py-verilog/Makefile
	py-verilog/Makefile-url2pkg.bak
	py-vispy/Makefile
	py-voronoi/Makefile
	py-wafo/Makefile
	py-wally/Makefile
	py-weberror/Makefile
	py-webflash/Makefile
	py-webhelpers/Makefile
	py-weblib/Makefile
	py-webtest/Makefile
	py-wsgi-intercept/Makefile
	py-wsgiref/Makefile
	py-xcal-raman/Makefile
	py-xdress/Makefile
	py-xlutils/Makefile
	py-yams/Makefile
	py-yaprt/Makefile
	py-yellowhiggs/Makefile
	py-yt/Makefile
	py-z2pack/Makefile
	py-zipline/Makefile
	py-zope.deprecation/Makefile
	trac-plugins-AuthOpenId/Makefile

Log Message:
Many packages: Switch to MASTER_SITES_PYPI.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a34ab40c8ab51410e5a15506a90beaf0aacc76eb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 gtimelog/Makefile                        | 2 +-
 mps-youtube/Makefile                     | 2 +-
 pdfminer/Makefile                        | 2 +-
 pudb/Makefile                            | 2 +-
 py-Beaker/Makefile                       | 2 +-
 py-Kallithea/Makefile                    | 2 +-
 py-RXP/Makefile                          | 2 +-
 py-SQLObject/Makefile                    | 2 +-
 py-abcpmc/Makefile                       | 2 +-
 py-achemkit/Makefile                     | 2 +-
 py-acq4/Makefile                         | 4 ++--
 py-addons/Makefile                       | 2 +-
 py-adsbibdesk/Makefile                   | 2 +-
 py-aesthete/Makefile                     | 2 +-
 py-affine/Makefile                       | 2 +-
 py-agio/Makefile                         | 2 +-
 py-aikif/Makefile                        | 2 +-
 py-aipy/Makefile                         | 2 +-
 py-alembic/Makefile                      | 2 +-
 py-alfanous/Makefile                     | 2 +-
 py-algebraic/Makefile                    | 2 +-
 py-algebraixlib/Makefile                 | 2 +-
 py-algopy/Makefile                       | 2 +-
 py-amqplib/Makefile                      | 2 +-
 py-aopython/Makefile                     | 2 +-
 py-appdirs/Makefile                      | 2 +-
 py-applpy/Makefile                       | 2 +-
 py-aqopa/Makefile                        | 2 +-
 py-arabic/Makefile                       | 2 +-
 py-argh/Makefile                         | 2 +-
 py-ars/Makefile                          | 2 +-
 py-arxiv2bib/Makefile                    | 2 +-
 py-arxvier/Makefile                      | 2 +-
 py-asciimathml/Makefile                  | 2 +-
 py-ass/Makefile                          | 2 +-
 py-astropysics/Makefile                  | 2 +-
 py-async/Makefile                        | 4 ++--
 py-atmark/Makefile                       | 4 ++--
 py-atmos/Makefile                        | 4 ++--
 py-atom/Makefile                         | 2 +-
 py-atomicfile/Makefile                   | 2 +-
 py-automata/Makefile                     | 2 +-
 py-baron/Makefile                        | 2 +-
 py-bcolz/Makefile                        | 2 +-
 py-bctpy/Makefile                        | 2 +-
 py-behaviour/Makefile                    | 2 +-
 py-bibtexparser3/Makefile                | 2 +-
 py-bidict/Makefile                       | 2 +-
 py-bigfloat/Makefile                     | 4 ++--
 py-biofrills/Makefile                    | 2 +-
 py-bip/Makefile                          | 2 +-
 py-bitarray/Makefile                     | 2 +-
 py-bitsets/Makefile                      | 2 +-
 py-blaze/Makefile                        | 2 +-
 py-blessings/Makefile                    | 2 +-
 py-blosc/Makefile                        | 2 +-
 py-bloscpack/Makefile                    | 2 +-
 py-bokeh/Makefile                        | 2 +-
 py-booktype/Makefile                     | 2 +-
 py-bottleneck/Makefile                   | 2 +-
 py-bravo/Makefile                        | 2 +-
 py-brewer2mpl/Makefile                   | 2 +-
 py-brian/Makefile                        | 2 +-
 py-bxa/Makefile                          | 2 +-
 py-bytecodeassembler/Makefile            | 2 +-
 py-calphad/Makefile                      | 2 +-
 py-cameo/Makefile                        | 4 ++--
 py-cartopy/Makefile                      | 2 +-
 py-cbc/Makefile                          | 2 +-
 py-ccdproc/Makefile                      | 2 +-
 py-cclib/Makefile                        | 2 +-
 py-ccuracy/Makefile                      | 2 +-
 py-cerridwen/Makefile                    | 2 +-
 py-cf-python/Makefile                    | 2 +-
 py-chaintipy/Makefile                    | 2 +-
 py-chebpy/Makefile                       | 2 +-
 py-chemlab/Makefile                      | 4 ++--
 py-chemview/Makefile                     | 2 +-
 py-chinup/Makefile                       | 2 +-
 py-chompack/Makefile                     | 2 +-
 py-ciabatta/Makefile                     | 2 +-
 py-cito/Makefile                         | 2 +-
 py-clickatell/Makefile                   | 4 ++--
 py-cliff/Makefile                        | 2 +-
 py-cligj/Makefile                        | 2 +-
 py-clint/Makefile                        | 2 +-
 py-clnum/Makefile                        | 4 ++--
 py-clonedigger-jl/Makefile               | 2 +-
 py-clonedigger/Makefile                  | 2 +-
 py-cloudlib/Makefile                     | 2 +-
 py-cma/Makefile                          | 2 +-
 py-cmd2/Makefile                         | 4 ++--
 py-cobra/Makefile                        | 2 +-
 py-codepy/Makefile                       | 2 +-
 py-cogapp/Makefile                       | 2 +-
 py-cogent/Makefile                       | 2 +-
 py-colorlog/Makefile                     | 2 +-
 py-complexsystems/Makefile               | 2 +-
 py-concepts/Makefile                     | 2 +-
 py-conda-env/Makefile                    | 2 +-
 py-conda/Makefile                        | 2 +-
 py-consensus/Makefile                    | 2 +-
 py-corpus/Makefile                       | 2 +-
 py-corrfitter/Makefile                   | 2 +-
 py-cosat/Makefile                        | 2 +-
 py-cosmolopy/Makefile                    | 2 +-
 py-coveralls/Makefile                    | 2 +-
 py-crontab/Makefile                      | 2 +-
 py-cryptoim/Makefile                     | 2 +-
 py-csa/Makefile                          | 2 +-
 py-csb/Makefile                          | 2 +-
 py-cscope/Makefile                       | 2 +-
 py-cse/Makefile                          | 2 +-
 py-ctutils/Makefile                      | 2 +-
 py-cubicweb/Makefile                     | 2 +-
 py-cvxpy/Makefile                        | 2 +-
 py-cxnet/Makefile                        | 2 +-
 py-cxvpy/Makefile                        | 2 +-
 py-cythongsl/Makefile                    | 2 +-
 py-cytoolz/Makefile                      | 2 +-
 py-da/Makefile                           | 2 +-
 py-dana/Makefile                         | 2 +-
 py-das/Makefile                          | 2 +-
 py-datarray/Makefile                     | 2 +-
 py-datatree/Makefile                     | 2 +-
 py-dclab/Makefile                        | 2 +-
 py-dcpf/Makefile                         | 4 ++--
 py-debacl/Makefile                       | 2 +-
 py-decimalpy/Makefile                    | 2 +-
 py-decode/Makefile                       | 4 ++--
 py-decoratortools/Makefile               | 2 +-
 py-delny/Makefile                        | 2 +-
 py-deltasigma/Makefile                   | 2 +-
 py-dependenpy/Makefile                   | 2 +-
 py-descartes/Makefile                    | 2 +-
 py-dexml/Makefile                        | 2 +-
 py-dexy/Makefile                         | 2 +-
 py-dexy_viewer/Makefile                  | 2 +-
 py-digraphtools/Makefile                 | 2 +-
 py-dill/Makefile                         | 2 +-
 py-dimarray/Makefile                     | 2 +-
 py-divisi2/Makefile                      | 2 +-
 py-dj-static/Makefile                    | 4 ++--
 py-django-audiofield/Makefile            | 2 +-
 py-django-gitrevision/Makefile           | 2 +-
 py-django-helmholtz/Makefile             | 2 +-
 py-django-markwhat/Makefile              | 2 +-
 py-django-mathjax/Makefile               | 2 +-
 py-django-nose/Makefile                  | 4 ++--
 py-django-quran/Makefile                 | 2 +-
 py-django-uuidfield/Makefile             | 2 +-
 py-djangopypi2/Makefile                  | 2 +-
 py-djvulibre/Makefile                    | 2 +-
 py-djvusmooth/Makefile                   | 2 +-
 py-dolo/Makefile                         | 2 +-
 py-drawnow/Makefile                      | 4 ++--
 py-dsltools/Makefile                     | 2 +-
 py-dubins/Makefile                       | 2 +-
 py-easydev/Makefile                      | 2 +-
 py-easymodeler/Makefile                  | 2 +-
 py-ecos/Makefile                         | 2 +-
 py-emcee/Makefile                        | 2 +-
 py-emmsa/Makefile                        | 4 ++--
 py-empirical/Makefile                    | 4 ++--
 py-enre/Makefile                         | 2 +-
 py-epigrass/Makefile                     | 2 +-
 py-epipy/Makefile                        | 2 +-
 py-equation/Makefile                     | 2 +-
 py-errorhandler/Makefile                 | 2 +-
 py-escher/Makefile                       | 2 +-
 py-etmtk/Makefile                        | 2 +-
 py-eventlet/Makefile                     | 2 +-
 py-exocode/Makefile                      | 2 +-
 py-extremes/Makefile                     | 2 +-
 py-faker/Makefile                        | 2 +-
 py-fanova/Makefile                       | 2 +-
 py-fatiando/Makefile                     | 2 +-
 py-fdasrsf/Makefile                      | 2 +-
 py-fealty/Makefile                       | 2 +-
 py-fedmsg/Makefile                       | 2 +-
 py-fiona/Makefile                        | 2 +-
 py-fipy/Makefile                         | 2 +-
 py-fitsarray/Makefile                    | 2 +-
 py-fjd/Makefile                          | 2 +-
 py-flipper/Makefile                      | 2 +-
 py-fluiddyn/Makefile                     | 4 ++--
 py-fnss/Makefile                         | 2 +-
 py-fortpy/Makefile                       | 2 +-
 py-fs/Makefile                           | 2 +-
 py-fssa/Makefile                         | 4 ++--
 py-functions/Makefile                    | 2 +-
 py-fuzzpy/Makefile                       | 2 +-
 py-fwm-ensayo/Makefile                   | 2 +-
 py-galry/Makefile                        | 2 +-
 py-gammafit/Makefile                     | 2 +-
 py-gaphas/Makefile                       | 2 +-
 py-gato/Makefile                         | 2 +-
 py-gauss/Makefile                        | 4 ++--
 py-genesis/Makefile                      | 2 +-
 py-geographiclib/Makefile                | 2 +-
 py-geoip/Makefile                        | 2 +-
 py-geopy/Makefile                        | 4 ++--
 py-ghalatawi/Makefile                    | 2 +-
 py-git/Makefile                          | 2 +-
 py-gitdb/Makefile                        | 2 +-
 py-gitpython/Makefile                    | 2 +-
 py-glespy/Makefile                       | 2 +-
 py-gmane/Makefile                        | 2 +-
 py-gmpy2/Makefile                        | 2 +-
 py-gnm/Makefile                          | 2 +-
 py-go/Makefile                           | 2 +-
 py-goreutilities/Makefile                | 2 +-
 py-goulib/Makefile                       | 2 +-
 py-grab/Makefile                         | 2 +-
 py-graphmin/Makefile                     | 2 +-
 py-graphsim/Makefile                     | 2 +-
 py-gratelpy/Makefile                     | 4 ++--
 py-gravipy/Makefile                      | 4 ++--
 py-grpy/Makefile                         | 2 +-
 py-gsw/Makefile                          | 2 +-
 py-guppy/Makefile                        | 2 +-
 py-gvar/Makefile                         | 2 +-
 py-gwpy/Makefile                         | 2 +-
 py-hamilton/Makefile                     | 4 ++--
 py-hcluster/Makefile                     | 2 +-
 py-hddm/Makefile                         | 2 +-
 py-hdf5able/Makefile                     | 2 +-
 py-hdf5storage/Makefile                  | 4 ++--
 py-helio/Makefile                        | 2 +-
 py-hgapi/Makefile                        | 2 +-
 py-hieroglyph/Makefile                   | 4 ++--
 py-holoviews/Makefile                    | 2 +-
 py-hope/Makefile                         | 2 +-
 py-hurry-filesize/Makefile               | 4 ++--
 py-hyperspy/Makefile                     | 2 +-
 py-ibis/Makefile                         | 2 +-
 py-icane/Makefile                        | 2 +-
 py-ift-nifty/Makefile                    | 2 +-
 py-igraph/Makefile                       | 2 +-
 py-imread/Makefile                       | 2 +-
 py-imreg-dft/Makefile                    | 2 +-
 py-inflection/Makefile                   | 2 +-
 py-inspyred/Makefile                     | 2 +-
 py-ioflo/Makefile                        | 2 +-
 py-ionize/Makefile                       | 2 +-
 py-iprogress/Makefile                    | 4 ++--
 py-ipython-sql/Makefile                  | 2 +-
 py-irco/Makefile                         | 2 +-
 py-jbessel/Makefile                      | 2 +-
 py-jedi/Makefile                         | 2 +-
 py-jelly/Makefile                        | 2 +-
 py-jewish/Makefile                       | 2 +-
 py-jsonrequester/Makefile                | 2 +-
 py-jsonschema/Makefile                   | 2 +-
 py-kabuki/Makefile                       | 2 +-
 py-khayyam/Makefile                      | 2 +-
 py-kineticlib/Makefile                   | 2 +-
 py-kitchen/Makefile                      | 2 +-
 py-kivy/Makefile                         | 2 +-
 py-kiwisolver/Makefile                   | 2 +-
 py-krylov/Makefile                       | 2 +-
 py-krypy/Makefile                        | 2 +-
 py-larlib/Makefile                       | 2 +-
 py-larry/Makefile                        | 2 +-
 py-latexcodec/Makefile                   | 2 +-
 py-lazy-object-proxy/Makefile            | 2 +-
 py-lds/Makefile                          | 2 +-
 py-lea/Makefile                          | 2 +-
 py-lib/Makefile                          | 2 +-
 py-liblzma/Makefile                      | 4 ++--
 py-librabbitmq/Makefile                  | 2 +-
 py-libtextcat/Makefile                   | 2 +-
 py-lifelines/Makefile                    | 4 ++--
 py-linearalgebra/Makefile                | 2 +-
 py-lingpy/Makefile                       | 4 ++--
 py-linop/Makefile                        | 2 +-
 py-lire/Makefile                         | 2 +-
 py-liveplots/Makefile                    | 2 +-
 py-llfuse/Makefile                       | 2 +-
 py-locustio/Makefile                     | 2 +-
 py-logbook/Makefile                      | 2 +-
 py-loggly/Makefile                       | 2 +-
 py-logilab-database/Makefile             | 2 +-
 py-logtools/Makefile                     | 2 +-
 py-louie/Makefile                        | 2 +-
 py-lrparsing/Makefile                    | 2 +-
 py-lsqfit/Makefile                       | 2 +-
 py-luminous/Makefile                     | 2 +-
 py-lzma/Makefile                         | 2 +-
 py-m2ext/Makefile                        | 2 +-
 py-mahotas/Makefile                      | 2 +-
 py-mando/Makefile                        | 2 +-
 py-mark/Makefile                         | 2 +-
 py-markovchain/Makefile                  | 4 ++--
 py-mathjspy/Makefile                     | 2 +-
 py-matplottheme/Makefile                 | 2 +-
 py-mave/Makefile                         | 4 ++--
 py-mcerp/Makefile                        | 2 +-
 py-mcint/Makefile                        | 2 +-
 py-mcview/Makefile                       | 2 +-
 py-meigo/Makefile                        | 2 +-
 py-mendeleev/Makefile                    | 2 +-
 py-metropack/Makefile                    | 2 +-
 py-minepy/Makefile                       | 2 +-
 py-mipp/Makefile                         | 2 +-
 py-mistune/Makefile                      | 2 +-
 py-mne/Makefile                          | 2 +-
 py-mochi/Makefile                        | 2 +-
 py-modargs/Makefile                      | 2 +-
 py-moksha-common/Makefile                | 2 +-
 py-moksha-hub/Makefile                   | 2 +-
 py-monad/Makefile                        | 2 +-
 py-monty/Makefile                        | 2 +-
 py-mox/Makefile                          | 2 +-
 py-moya/Makefile                         | 2 +-
 py-mplh5canvas/Makefile                  | 2 +-
 py-mpop/Makefile                         | 2 +-
 py-msdas/Makefile                        | 2 +-
 py-mssql2/Makefile                       | 2 +-
 py-msumastro/Makefile                    | 2 +-
 py-multichain_mcmc/Makefile              | 2 +-
 py-multimethods/Makefile                 | 2 +-
 py-mvpoly/Makefile                       | 2 +-
 py-naftawayh/Makefile                    | 2 +-
 py-naima/Makefile                        | 2 +-
 py-natsort/Makefile                      | 2 +-
 py-ncomb/Makefile                        | 2 +-
 py-ncpol2sdpa/Makefile                   | 2 +-
 py-neo/Makefile                          | 2 +-
 py-netcdf4/Makefile                      | 2 +-
 py-netflowvizu/Makefile                  | 2 +-
 py-neupy/Makefile                        | 4 ++--
 py-neurolab/Makefile                     | 2 +-
 py-neuronpy/Makefile                     | 2 +-
 py-nexpy/Makefile                        | 2 +-
 py-ngf/Makefile                          | 4 ++--
 py-nibabel/Makefile                      | 2 +-
 py-nilearn/Makefile                      | 2 +-
 py-nimfa/Makefile                        | 2 +-
 py-nipy/Makefile                         | 4 ++--
 py-nlib/Makefile                         | 2 +-
 py-nodepy/Makefile                       | 2 +-
 py-nose-senario/Makefile                 | 2 +-
 py-nptdms/Makefile                       | 2 +-
 py-nuitka/Makefile                       | 2 +-
 py-numberjack/Makefile                   | 2 +-
 py-numdifftools/Makefile                 | 2 +-
 py-numericalunits/Makefile               | 2 +-
 py-nupic/Makefile                        | 2 +-
 py-ocrodjvu/Makefile                     | 2 +-
 py-oct2py/Makefile                       | 2 +-
 py-ode/Makefile                          | 2 +-
 py-odeint/Makefile                       | 2 +-
 py-odesys/Makefile                       | 2 +-
 py-odeviz/Makefile                       | 4 ++--
 py-okpy/Makefile                         | 2 +-
 py-ontopy/Makefile                       | 2 +-
 py-openopt/Makefile                      | 2 +-
 py-opentmm/Makefile                      | 2 +-
 py-ordered-set/Makefile                  | 2 +-
 py-ordereddict/Makefile                  | 2 +-
 py-oset/Makefile                         | 2 +-
 py-otb/Makefile                          | 2 +-
 py-owslib/Makefile                       | 2 +-
 py-paegan/Makefile                       | 2 +-
 py-pafy/Makefile                         | 2 +-
 py-papy/Makefile                         | 2 +-
 py-parakeet/Makefile                     | 4 ++--
 py-param/Makefile                        | 2 +-
 py-parameters/Makefile                   | 2 +-
 py-paramunittest/Makefile                | 2 +-
 py-path.py/Makefile                      | 2 +-
 py-pathlib/Makefile                      | 2 +-
 py-patsy/Makefile                        | 4 ++--
 py-pdef/Makefile                         | 2 +-
 py-pdfposter/Makefile                    | 2 +-
 py-peru/Makefile                         | 2 +-
 py-pet/Makefile                          | 2 +-
 py-pint/Makefile                         | 4 ++--
 py-piquant/Makefile                      | 2 +-
 py-plete/Makefile                        | 4 ++--
 py-plex/Makefile                         | 2 +-
 py-pmi/Makefile                          | 2 +-
 py-postmarkup/Makefile                   | 2 +-
 py-pot/Makefile                          | 2 +-
 py-prayertime/Makefile                   | 2 +-
 py-premailer/Makefile                    | 2 +-
 py-prioritized-methods/Makefile          | 2 +-
 py-processing/Makefile                   | 2 +-
 py-prody/Makefile                        | 2 +-
 py-psamm/Makefile                        | 2 +-
 py-pseudopy/Makefile                     | 2 +-
 py-ptrace/Makefile                       | 2 +-
 py-pulsar/Makefile                       | 4 ++--
 py-pweave/Makefile                       | 2 +-
 py-pyamf/Makefile                        | 2 +-
 py-pydy-viz/Makefile                     | 2 +-
 py-pydy/Makefile                         | 2 +-
 py-pyec/Makefile                         | 2 +-
 py-pygit2/Makefile                       | 2 +-
 py-pykit-sci/Makefile                    | 2 +-
 py-pylons/Makefile                       | 2 +-
 py-pymbolic/Makefile                     | 2 +-
 py-pymc/Makefile                         | 2 +-
 py-pynn/Makefile                         | 2 +-
 py-pyon/Makefile                         | 4 ++--
 py-pyphant/Makefile                      | 2 +-
 py-pypi-cli/Makefile                     | 2 +-
 py-pyrr/Makefile                         | 2 +-
 py-pysal/Makefile                        | 2 +-
 py-pysb/Makefile                         | 2 +-
 py-pyslha/Makefile                       | 2 +-
 py-pysph/Makefile                        | 2 +-
 py-pyswisseph/Makefile                   | 2 +-
 py-python-application/Makefile           | 2 +-
 py-python-gnutls/Makefile                | 2 +-
 py-pytkgen/Makefile                      | 2 +-
 py-pytools/Makefile                      | 2 +-
 py-pyvib2/Makefile                       | 2 +-
 py-qalsadi/Makefile                      | 2 +-
 py-qeutil/Makefile                       | 2 +-
 py-qit/Makefile                          | 2 +-
 py-qmath/Makefile                        | 2 +-
 py-qnet/Makefile                         | 2 +-
 py-quantities/Makefile                   | 2 +-
 py-quaternionarray/Makefile              | 2 +-
 py-quepy/Makefile                        | 2 +-
 py-radon/Makefile                        | 2 +-
 py-radontea/Makefile                     | 2 +-
 py-raphrase/Makefile                     | 2 +-
 py-rasterio/Makefile                     | 4 ++--
 py-raven/Makefile                        | 2 +-
 py-rdf/Makefile                          | 2 +-
 py-rdflib-django/Makefile                | 4 ++--
 py-rdopkg/Makefile                       | 2 +-
 py-rdoupdate/Makefile                    | 2 +-
 py-rebound/Makefile                      | 2 +-
 py-recluse/Makefile                      | 2 +-
 py-redbaron/Makefile                     | 4 ++--
 py-reducer/Makefile                      | 2 +-
 py-regex/Makefile                        | 2 +-
 py-report/Makefile                       | 2 +-
 py-repoze.tm2/Makefile                   | 2 +-
 py-restkit/Makefile                      | 2 +-
 py-rf/Makefile                           | 4 ++--
 py-rogues/Makefile                       | 2 +-
 py-ropemode/Makefile                     | 2 +-
 py-rpaths/Makefile                       | 2 +-
 py-rql/Makefile                          | 2 +-
 py-rsistent/Makefile                     | 2 +-
 py-ruffus/Makefile                       | 2 +-
 py-sas7bdat/Makefile                     | 2 +-
 py-sasa/Makefile                         | 2 +-
 py-scikit-aero/Makefile                  | 2 +-
 py-scikit-image/Makefile                 | 2 +-
 py-scikit-learn/Makefile                 | 2 +-
 py-scikit-monaco/Makefile                | 2 +-
 py-scikit-nano/Makefile                  | 2 +-
 py-scikits-bvp_solver/Makefile           | 2 +-
 py-scikits_ann/Makefile                  | 2 +-
 py-scikits_bvp1lg/Makefile               | 2 +-
 py-scikits_datasmooth/Makefile           | 2 +-
 py-scikits_image/Makefile                | 4 ++--
 py-scikits_optimization/Makefile         | 2 +-
 py-scikits_samplerate/Makefile           | 2 +-
 py-scikits_scattpy/Makefile              | 2 +-
 py-scikits_talkbox/Makefile              | 2 +-
 py-scikits_vectorplot/Makefile           | 2 +-
 py-sciproc/Makefile                      | 2 +-
 py-scipy-data_fitting/Makefile           | 2 +-
 py-scp/Makefile                          | 2 +-
 py-screenutils/Makefile                  | 2 +-
 py-scs/Makefile                          | 2 +-
 py-sdeint/Makefile                       | 2 +-
 py-sdt_metrics/Makefile                  | 2 +-
 py-seaborn/Makefile                      | 2 +-
 py-selection/Makefile                    | 2 +-
 py-selenium/Makefile                     | 2 +-
 py-semidbm/Makefile                      | 4 ++--
 py-sempy/Makefile                        | 4 ++--
 py-sentry/Makefile                       | 2 +-
 py-sep/Makefile                          | 2 +-
 py-setupdocs/Makefile                    | 2 +-
 py-setuptools_git/Makefile               | 2 +-
 py-shapely/Makefile                      | 2 +-
 py-shutilwhich/Makefile                  | 2 +-
 py-sima/Makefile                         | 2 +-
 py-simplegeneric/Makefile                | 2 +-
 py-simulators/Makefile                   | 2 +-
 py-sleekxmpp/Makefile                    | 2 +-
 py-slowaes/Makefile                      | 2 +-
 py-smcp/Makefile                         | 2 +-
 py-smell/Makefile                        | 2 +-
 py-smmap/Makefile                        | 2 +-
 py-smop/Makefile                         | 2 +-
 py-snappy/Makefile                       | 2 +-
 py-socksipy-branch/Makefile              | 4 ++--
 py-sode/Makefile                         | 2 +-
 py-sofa/Makefile                         | 2 +-
 py-solpy/Makefile                        | 2 +-
 py-speview/Makefile                      | 2 +-
 py-sphereTS/Makefile                     | 2 +-
 py-sphinxreport/Makefile                 | 2 +-
 py-sphviewer/Makefile                    | 2 +-
 py-sppy/Makefile                         | 2 +-
 py-sqlalchemy-searchable/Makefile        | 4 ++--
 py-ssp/Makefile                          | 2 +-
 py-stache/Makefile                       | 4 ++--
 py-statsmodels/Makefile                  | 2 +-
 py-stevedore/Makefile                    | 2 +-
 py-strategies/Makefile                   | 2 +-
 py-sumatra/Makefile                      | 2 +-
 py-sunpy/Makefile                        | 2 +-
 py-symath/Makefile                       | 2 +-
 py-symboltype/Makefile                   | 2 +-
 py-tablib-garetjax/Makefile              | 2 +-
 py-tardis-sn/Makefile                    | 2 +-
 py-tashaphyne/Makefile                   | 2 +-
 py-tasphyne/Makefile                     | 2 +-
 py-teafiles/Makefile                     | 2 +-
 py-thLib/Makefile                        | 2 +-
 py-theano/Makefile                       | 2 +-
 py-thermopy/Makefile                     | 2 +-
 py-tinydb/Makefile                       | 2 +-
 py-tkinter-help/Makefile                 | 2 +-
 py-tklsystem/Makefile                    | 2 +-
 py-tmux/Makefile                         | 4 ++--
 py-toeplitz/Makefile                     | 2 +-
 py-toolz/Makefile                        | 2 +-
 py-toro/Makefile                         | 2 +-
 py-toscawidgets/Makefile                 | 2 +-
 py-transaction/Makefile                  | 2 +-
 py-translationstring/Makefile            | 2 +-
 py-trollius/Makefile                     | 2 +-
 py-tsgeom/Makefile                       | 2 +-
 py-ttk/Makefile                          | 2 +-
 py-turbojson/Makefile                    | 2 +-
 py-twilio/Makefile                       | 4 ++--
 py-txWS/Makefile                         | 2 +-
 py-txZMQ/Makefile                        | 2 +-
 py-txdbus/Makefile                       | 2 +-
 py-typedecorator/Makefile                | 2 +-
 py-umalqurra/Makefile                    | 2 +-
 py-uncertainties/Makefile                | 2 +-
 py-uptime/Makefile                       | 2 +-
 py-usagestats/Makefile                   | 2 +-
 py-user_agent/Makefile                   | 2 +-
 py-utilib_common/Makefile                | 2 +-
 py-utilib_component_app/Makefile         | 2 +-
 py-utilib_component_config/Makefile      | 4 ++--
 py-utilib_component_core/Makefile        | 2 +-
 py-utilib_component_executables/Makefile | 2 +-
 py-utilib_component_loader/Makefile      | 2 +-
 py-utilib_enum/Makefile                  | 2 +-
 py-utilib_excel/Makefile                 | 2 +-
 py-utilib_math/Makefile                  | 4 ++--
 py-utilib_misc/Makefile                  | 2 +-
 py-utilib_ply/Makefile                   | 2 +-
 py-uuid/Makefile                         | 2 +-
 py-validictory/Makefile                  | 2 +-
 py-vanity/Makefile                       | 2 +-
 py-varify/Makefile                       | 2 +-
 py-vcversioner/Makefile                  | 2 +-
 py-vdirsyncer-git/Makefile               | 2 +-
 py-vegas/Makefile                        | 4 ++--
 py-venusian/Makefile                     | 2 +-
 py-verilog/Makefile                      | 2 +-
 py-verilog/Makefile-url2pkg.bak          | 4 ++--
 py-vispy/Makefile                        | 2 +-
 py-voronoi/Makefile                      | 2 +-
 py-wafo/Makefile                         | 2 +-
 py-wally/Makefile                        | 2 +-
 py-weberror/Makefile                     | 2 +-
 py-webflash/Makefile                     | 2 +-
 py-webhelpers/Makefile                   | 2 +-
 py-weblib/Makefile                       | 4 ++--
 py-webtest/Makefile                      | 2 +-
 py-wsgi-intercept/Makefile               | 2 +-
 py-wsgiref/Makefile                      | 2 +-
 py-xcal-raman/Makefile                   | 2 +-
 py-xdress/Makefile                       | 2 +-
 py-xlutils/Makefile                      | 2 +-
 py-yams/Makefile                         | 2 +-
 py-yaprt/Makefile                        | 2 +-
 py-yellowhiggs/Makefile                  | 2 +-
 py-yt/Makefile                           | 2 +-
 py-z2pack/Makefile                       | 2 +-
 py-zipline/Makefile                      | 2 +-
 py-zope.deprecation/Makefile             | 2 +-
 trac-plugins-AuthOpenId/Makefile         | 2 +-
 590 files changed, 650 insertions(+), 650 deletions(-)

diffs:
diff --git a/gtimelog/Makefile b/gtimelog/Makefile
index ed8f436..b24e4ea 100644
--- a/gtimelog/Makefile
+++ b/gtimelog/Makefile
@@ -2,7 +2,7 @@
 
 DISTNAME=	gtimelog-0.5.0
 CATEGORIES=	time
-MASTER_SITES=	http://pypi.python.org/packages/source/g/gtimelog/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/gtimelog/}
 
 MAINTAINER=	morr%NetBSD.org@localhost
 HOMEPAGE=	http://mg.pov.lt/gtimelog/
diff --git a/mps-youtube/Makefile b/mps-youtube/Makefile
index a7c8a57..dbcd441 100644
--- a/mps-youtube/Makefile
+++ b/mps-youtube/Makefile
@@ -2,7 +2,7 @@
 
 DISTNAME=	mps-youtube-0.2.5-2
 CATEGORIES=	multimedia net python
-MASTER_SITES=	https://pypi.python.org/packages/source/m/mps-youtube/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mps-youtube/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/np1/mps-youtube
diff --git a/pdfminer/Makefile b/pdfminer/Makefile
index 78149c3..6768413 100644
--- a/pdfminer/Makefile
+++ b/pdfminer/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	pdfminer-20100424.tar
 PKGNAME=	${DISTNAME:S/.tar//}
 CATEGORIES=	print python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pdfminer/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pdfminer/}
 EXTRACT_SUFX=	.gz#md5=d69836472cd1d555a7340e0fe75c5e20
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/pudb/Makefile b/pudb/Makefile
index 5728598..b278592 100644
--- a/pudb/Makefile
+++ b/pudb/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	pudb-0.92.15
 PKGNAME=	${EGG_NAME}
 EGG_NAME=	${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pudb/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pudb/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/pudb/
diff --git a/py-Beaker/Makefile b/py-Beaker/Makefile
index c75686b..1b716f9 100644
--- a/py-Beaker/Makefile
+++ b/py-Beaker/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	Beaker-1.7.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 EGG_NAME=	${DISTNAME}
 CATEGORIES=	www python
-MASTER_SITES=	http://pypi.python.org/packages/source/B/Beaker/
+MASTER_SITES=	${MASTER_SITE_PYPI:=B/Beaker/}
 
 MAINTAINER=	jkuittinen%users.sourceforge.net@localhost
 HOMEPAGE=	http://beaker.groovie.org/
diff --git a/py-Kallithea/Makefile b/py-Kallithea/Makefile
index a07f3cb..7d01124 100644
--- a/py-Kallithea/Makefile
+++ b/py-Kallithea/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Kallithea-0.2.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel scm
-MASTER_SITES=	https://pypi.python.org/packages/source/K/Kallithea/
+MASTER_SITES=	${MASTER_SITE_PYPI:=K/Kallithea/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
diff --git a/py-RXP/Makefile b/py-RXP/Makefile
index aad7705..0a4b60f 100644
--- a/py-RXP/Makefile
+++ b/py-RXP/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pyRXP-2.1.0
 PKGNAME=	${PYPKGPREFIX}-rxp-2.1.0
 CATEGORIES=	textproc
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyRXP/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyRXP/}
 
 MAINTAINER=	david%netbsd-fr.org@localhost
 HOMEPAGE=	http://www.reportlab.org/pyrxp.html
diff --git a/py-SQLObject/Makefile b/py-SQLObject/Makefile
index decc4b5..40df843 100644
--- a/py-SQLObject/Makefile
+++ b/py-SQLObject/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	SQLObject-1.3.1.tar
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/.tar//}
 EGG_NAME=	${DISTNAME:S|.tar||:Q}
 CATEGORIES=	databases python
-MASTER_SITES=	http://pypi.python.org/packages/source/S/SQLObject/
+MASTER_SITES=	${MASTER_SITE_PYPI:=S/SQLObject/}
 EXTRACT_SUFX=	.gz
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
diff --git a/py-abcpmc/Makefile b/py-abcpmc/Makefile
index fa0cfb9..4247bb7 100644
--- a/py-abcpmc/Makefile
+++ b/py-abcpmc/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	abcpmc-0.1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/a/abcpmc/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/abcpmc/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.cosmology.ethz.ch/research/software-lab/abcpmc.html
diff --git a/py-achemkit/Makefile b/py-achemkit/Makefile
index 27cab2c..d41cb57 100644
--- a/py-achemkit/Makefile
+++ b/py-achemkit/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	AChemKit-0.3.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	biology
-MASTER_SITES=	https://pypi.python.org/packages/source/A/AChemKit/
+MASTER_SITES=	${MASTER_SITE_PYPI:=A/AChemKit/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	 https://github.com/afaulconbridge/PyAChemKit
diff --git a/py-acq4/Makefile b/py-acq4/Makefile
index 20a954d..fea999d 100644
--- a/py-acq4/Makefile
+++ b/py-acq4/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	acq4-0.9.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/a/acq4/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/acq4/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/a/acq4/
+HOMEPAGE=	${MASTER_SITE_PYPI:=a/acq4/}
 COMMENT=	Neurophysiology acquisition and analysis platform
 LICENSE = mit
 
diff --git a/py-addons/Makefile b/py-addons/Makefile
index 4cf808e..cfe4a08 100644
--- a/py-addons/Makefile
+++ b/py-addons/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	AddOns-0.7
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/A/a/S/O/o/}
 CATEGORIES=	devel
-MASTER_SITES=	http://pypi.python.org/packages/source/A/AddOns/
+MASTER_SITES=	${MASTER_SITE_PYPI:=A/AddOns/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
diff --git a/py-adsbibdesk/Makefile b/py-adsbibdesk/Makefile
index 088d7cb..e57de7d 100644
--- a/py-adsbibdesk/Makefile
+++ b/py-adsbibdesk/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	adsbibdesk-3.1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	misc
-MASTER_SITES=	https://pypi.python.org/packages/source/a/adsbibdesk/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/adsbibdesk/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.jonathansick.ca/adsbibdesk/
diff --git a/py-aesthete/Makefile b/py-aesthete/Makefile
index 775dfbd..da0d050 100644
--- a/py-aesthete/Makefile
+++ b/py-aesthete/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	Aesthete-0.4.1-7
 EGG_NAME=	${DISTNAME}
 PKGNAME=	${PYPKGPREFIX}-aesthete-0.4.1-7
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/A/Aesthete/
+MASTER_SITES=	${MASTER_SITE_PYPI:=A/Aesthete/}
 
 MAINTAINER= 	jihbed.research%gmail.com@localhost
 HOMEPAGE=       http://www.philtweir.co.uk/aesthete/wiki/pmwiki.php
diff --git a/py-affine/Makefile b/py-affine/Makefile
index 110d942..ff83e89 100644
--- a/py-affine/Makefile
+++ b/py-affine/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	affine-1.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/a/affine/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/affine/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/sgillies/affine
diff --git a/py-agio/Makefile b/py-agio/Makefile
index ce07212..94b2efe 100644
--- a/py-agio/Makefile
+++ b/py-agio/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	AIGO-0.1.0
 PKGNAME=	${PYPKGPREFIX}-aigo-0.1.0
 PKGREVISION=	2
 CATEGORIES=	www
-MASTER_SITES=	http://pypi.python.org/packages/source/A/AIGO/
+MASTER_SITES=	${MASTER_SITE_PYPI:=A/AIGO/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://code.google.com/p/aigo/
diff --git a/py-aikif/Makefile b/py-aikif/Makefile
index 0601d4c..8cbba2e 100644
--- a/py-aikif/Makefile
+++ b/py-aikif/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	AIKIF-0.0.8
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/A/AIKIF/
+MASTER_SITES=	${MASTER_SITE_PYPI:=A/AIKIF/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-aipy/Makefile b/py-aipy/Makefile
index 4feec88..8a7f799 100644
--- a/py-aipy/Makefile
+++ b/py-aipy/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	aipy-2.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	1
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/a/aipy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/aipy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://casper.berkeley.edu/astrobaki/index.php/AIPY
diff --git a/py-alembic/Makefile b/py-alembic/Makefile
index d03ecbd..e16ad1a 100644
--- a/py-alembic/Makefile
+++ b/py-alembic/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	alembic-0.7.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	databases python
-MASTER_SITES=	https://pypi.python.org/packages/source/a/alembic/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/alembic/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://bitbucket.org/zzzeek/alembic
diff --git a/py-alfanous/Makefile b/py-alfanous/Makefile
index f84d4ed..f4ba78c 100644
--- a/py-alfanous/Makefile
+++ b/py-alfanous/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	alfanous-0.7.28
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	misc python
-MASTER_SITES=	https://pypi.python.org/packages/source/a/alfanous/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/alfanous/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://www.alfanous.org/
diff --git a/py-algebraic/Makefile b/py-algebraic/Makefile
index e562d77..445c664 100644
--- a/py-algebraic/Makefile
+++ b/py-algebraic/Makefile
@@ -6,7 +6,7 @@ DISTNAME=	python-algebraic-0.3.1.dev-20120112
 EGG_NAME=	python_algebraic-0.3.1.dev20120112
 PKGNAME=	${PYPKGPREFIX}-algebraic-${VERSION}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/python-algebraic/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/python-algebraic/}
 EXTRACT_SUFX=	.zip#md5=cbf55e6cefe57b36cdb962a2d5926a45
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-algebraixlib/Makefile b/py-algebraixlib/Makefile
index 8781b6a..c05081e 100644
--- a/py-algebraixlib/Makefile
+++ b/py-algebraixlib/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	algebraixlib-1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/a/algebraixlib/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/algebraixlib/}
 EXTRACT_SUFX=	.zip#md5=9219b5fbb1acc17ee637a60c2877a7c9
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-algopy/Makefile b/py-algopy/Makefile
index bd23b8b..a8c0900 100644
--- a/py-algopy/Makefile
+++ b/py-algopy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	algopy-0.5.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/a/algopy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/algopy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://packages.python.org/algopy
diff --git a/py-amqplib/Makefile b/py-amqplib/Makefile
index 56ecd8b..dff816f 100644
--- a/py-amqplib/Makefile
+++ b/py-amqplib/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	amqplib-1.0.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/a/amqplib/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/amqplib/}
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
diff --git a/py-aopython/Makefile b/py-aopython/Makefile
index 7e70777..414509e 100644
--- a/py-aopython/Makefile
+++ b/py-aopython/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	AOPython-1.0.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/AOP/aop/}
 CATEGORIES=	devel
-MASTER_SITES=	http://pypi.python.org/packages/source/A/AOPython/
+MASTER_SITES=	${MASTER_SITE_PYPI:=A/AOPython/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-appdirs/Makefile b/py-appdirs/Makefile
index dbe40d0..042495d 100644
--- a/py-appdirs/Makefile
+++ b/py-appdirs/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	appdirs-1.4.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/a/appdirs/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/appdirs/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	 http://github.com/ActiveState/appdirs
diff --git a/py-applpy/Makefile b/py-applpy/Makefile
index bbff432..2bdc2ab 100644
--- a/py-applpy/Makefile
+++ b/py-applpy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	APPLPy-0.1.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/A/APPLPy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=A/APPLPy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/APPLPy/
diff --git a/py-aqopa/Makefile b/py-aqopa/Makefile
index 1f4247d..c94bf82 100644
--- a/py-aqopa/Makefile
+++ b/py-aqopa/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	AQoPA-0.5.3
 PKGNAME=	${PYPKGPREFIX}-aqopa-0.5.3
 CATEGORIES=	security python
-MASTER_SITES=	https://pypi.python.org/packages/source/A/AQoPA/
+MASTER_SITES=	${MASTER_SITE_PYPI:=A/AQoPA/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://qopml.org/aqopa/
diff --git a/py-arabic/Makefile b/py-arabic/Makefile
index 4161abb..b8613ec 100644
--- a/py-arabic/Makefile
+++ b/py-arabic/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	PyArabic-0.5.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/Py//tl}
 CATEGORIES=	textproc python
-MASTER_SITES=	https://pypi.python.org/packages/source/P/PyArabic/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/PyArabic/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-argh/Makefile b/py-argh/Makefile
index 5ac985e..9dda358 100644
--- a/py-argh/Makefile
+++ b/py-argh/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	argh-0.24.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/a/argh/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/argh/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/neithere/argh/
diff --git a/py-ars/Makefile b/py-ars/Makefile
index c8a9d76..e6b9eb9 100644
--- a/py-ars/Makefile
+++ b/py-ars/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ARS-0.5b1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/A/ARS/
+MASTER_SITES=	${MASTER_SITE_PYPI:=A/ARS/}
 EXTRACT_SUFX=	.zip#md5=41d681a4a1e9434d856e18451c197fb0
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-arxiv2bib/Makefile b/py-arxiv2bib/Makefile
index 015a5a3..ac65299 100644
--- a/py-arxiv2bib/Makefile
+++ b/py-arxiv2bib/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	arxiv2bib-1.0.5
 CPKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc python
-MASTER_SITES=	https://pypi.python.org/packages/source/a/arxiv2bib/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/arxiv2bib/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
diff --git a/py-arxvier/Makefile b/py-arxvier/Makefile
index fd49faa..64cdb0f 100644
--- a/py-arxvier/Makefile
+++ b/py-arxvier/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	arxiver-0.0.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	misc
-MASTER_SITES=	https://pypi.python.org/packages/source/a/arxiver/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/arxiver/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/jon--lee/arxiver
diff --git a/py-asciimathml/Makefile b/py-asciimathml/Makefile
index d6613eb..1692c85 100644
--- a/py-asciimathml/Makefile
+++ b/py-asciimathml/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	asciimathml-0.9.4.1
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/a/asciimathml/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/asciimathml/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://github.com/favalex/python-asciimathml
diff --git a/py-ass/Makefile b/py-ass/Makefile
index 9357fd4..b341045 100644
--- a/py-ass/Makefile
+++ b/py-ass/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ass-0.4.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/a/ass/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/ass/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	http://github.com/rfw/python-ass
diff --git a/py-astropysics/Makefile b/py-astropysics/Makefile
index d8d7b22..039a79e 100644
--- a/py-astropysics/Makefile
+++ b/py-astropysics/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	Astropysics-0.1.dev-r596
 PKGNAME=	${PYPKGPREFIX}-Astropysics-0.1
 PKGREVISION=	2
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/A/Astropysics/
+MASTER_SITES=	${MASTER_SITE_PYPI:=A/Astropysics/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.physics.uci.edu/~etolleru/software.html#astropysics
diff --git a/py-async/Makefile b/py-async/Makefile
index 0412c8e..166b1c4 100644
--- a/py-async/Makefile
+++ b/py-async/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	async-0.6.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/a/async/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/async/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
-HOMEPAGE=	http://pypi.python.org/packages/source/a/async/
+HOMEPAGE=	${MASTER_SITE_PYPI:=a/async/}
 COMMENT=	Framework to process interdependent tasks in a pool of workers
 LICENSE=	modified-bsd #Probably
 
diff --git a/py-atmark/Makefile b/py-atmark/Makefile
index fe49838..5a06424 100644
--- a/py-atmark/Makefile
+++ b/py-atmark/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	atmark-0.6.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc python
-MASTER_SITES=	https://pypi.python.org/packages/source/a/atmark/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/atmark/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/a/atmark/
+HOMEPAGE=	${MASTER_SITE_PYPI:=a/atmark/}
 COMMENT=	Awk/Sed for humans
 LICENSE=	modified-bsd
 
diff --git a/py-atmos/Makefile b/py-atmos/Makefile
index bdc9717..0d5a598 100644
--- a/py-atmos/Makefile
+++ b/py-atmos/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	atmos-0.2.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/a/atmos/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/atmos/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/a/atmos/
+HOMEPAGE=	${MASTER_SITE_PYPI:=a/atmos/}
 COMMENT=	Atmospheric sciences utility library
 LICENSE=	mit
 
diff --git a/py-atom/Makefile b/py-atom/Makefile
index 45ae7a3..26c0e02 100644
--- a/py-atom/Makefile
+++ b/py-atom/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	atom-0.3.9
 PKGNAME=    	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/a/atom/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/atom/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/nucleic/atom
diff --git a/py-atomicfile/Makefile b/py-atomicfile/Makefile
index 4a21451..283e7b8 100644
--- a/py-atomicfile/Makefile
+++ b/py-atomicfile/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	atomicfile-1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/a/atomicfile/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/atomicfile/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/sashka/atomicfile
diff --git a/py-automata/Makefile b/py-automata/Makefile
index 1ed01f9..19bcccd 100644
--- a/py-automata/Makefile
+++ b/py-automata/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	automata-0.1.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/a/automata/
+MASTER_SITES=	${MASTER_SITE_PYPI:=a/automata/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/bniemczyk/automata
diff --git a/py-baron/Makefile b/py-baron/Makefile
index c30c0ff..97a2754 100644
--- a/py-baron/Makefile
+++ b/py-baron/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	baron-0.6.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/b/baron/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/baron/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/Psycojoker/baron
diff --git a/py-bcolz/Makefile b/py-bcolz/Makefile
index 13d0d32..a433878 100644
--- a/py-bcolz/Makefile
+++ b/py-bcolz/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	bcolz-0.11.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/b/bcolz/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/bcolz/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/Blosc/bcolz
diff --git a/py-bctpy/Makefile b/py-bctpy/Makefile
index 4c66f31..462bf81 100644
--- a/py-bctpy/Makefile
+++ b/py-bctpy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	bctpy-0.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology
-MASTER_SITES=	https://pypi.python.org/packages/source/b/bctpy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/bctpy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/aestrivex/bctpy
diff --git a/py-behaviour/Makefile b/py-behaviour/Makefile
index f37ee05..3bc9e63 100644
--- a/py-behaviour/Makefile
+++ b/py-behaviour/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	Behaviour-0.1a4
 PKGNAME=	${PYPKGPREFIX}-behaviour-0.1
 PKGREVISION=	1
 CATEGORIES=	devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/B/Behaviour/
+MASTER_SITES=	${MASTER_SITE_PYPI:=B/Behaviour/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/Behaviour/
diff --git a/py-bibtexparser3/Makefile b/py-bibtexparser3/Makefile
index 962be49..34122d5 100644
--- a/py-bibtexparser3/Makefile
+++ b/py-bibtexparser3/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	bibtexparser-0.5.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	print python
-MASTER_SITES=	https://pypi.python.org/packages/source/b/bibtexparser/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/bibtexparser/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/sciunto/python-bibtexparser
diff --git a/py-bidict/Makefile b/py-bidict/Makefile
index 9bb1396..b907133 100644
--- a/py-bidict/Makefile
+++ b/py-bidict/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	bidict-0.1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	http://pypi.python.org/packages/source/b/bidict/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/bidict/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://bitbucket.org/jab/bidict
diff --git a/py-bigfloat/Makefile b/py-bigfloat/Makefile
index 0e1f63c..b27450f 100644
--- a/py-bigfloat/Makefile
+++ b/py-bigfloat/Makefile
@@ -5,10 +5,10 @@ DISTNAME=	bigfloat-0.2.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	2
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/b/bigfloat/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/bigfloat/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	http://pypi.python.org/packages/source/b/bigfloat/
+HOMEPAGE=	${MASTER_SITE_PYPI:=b/bigfloat/}
 COMMENT= Arbitrary precision correctly-rounded floating point arithmetic
 LICENSE=	gnu-gpl-v3 AND gnu-lgpl-v3
 
diff --git a/py-biofrills/Makefile b/py-biofrills/Makefile
index 7a772b8..b713356 100644
--- a/py-biofrills/Makefile
+++ b/py-biofrills/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	biofrills-0.3.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology python
-MASTER_SITES=	https://pypi.python.org/packages/source/b/biofrills/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/biofrills/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/etal/biofrills
diff --git a/py-bip/Makefile b/py-bip/Makefile
index baeea25..f21cfc5 100644
--- a/py-bip/Makefile
+++ b/py-bip/Makefile
@@ -5,7 +5,7 @@ EGG_NAME=	${DISTNAME}
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/BIP/bip/}
 PKGREVISION=	2
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/B/BIP/
+MASTER_SITES=	${MASTER_SITE_PYPI:=B/BIP/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://code.google.com/p/bayesian-inference/
diff --git a/py-bitarray/Makefile b/py-bitarray/Makefile
index 4e46242..afadb51 100644
--- a/py-bitarray/Makefile
+++ b/py-bitarray/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	bitarray-0.8.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/b/bitarray/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/bitarray/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/bitarray
diff --git a/py-bitsets/Makefile b/py-bitsets/Makefile
index 2668ccb..cbef20b 100644
--- a/py-bitsets/Makefile
+++ b/py-bitsets/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	bitsets-0.1.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	wip
-MASTER_SITES=	https://pypi.python.org/packages/source/b/bitsets/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/bitsets/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
diff --git a/py-blaze/Makefile b/py-blaze/Makefile
index 87d56a0..99610c5 100644
--- a/py-blaze/Makefile
+++ b/py-blaze/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	blaze-0.6.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/b/blaze/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/blaze/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-blessings/Makefile b/py-blessings/Makefile
index 2e0e07d..bfdfd20 100644
--- a/py-blessings/Makefile
+++ b/py-blessings/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	blessings-1.6
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/b/blessings/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/blessings/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/erikrose/blessings
diff --git a/py-blosc/Makefile b/py-blosc/Makefile
index ae1f223..29df629 100644
--- a/py-blosc/Makefile
+++ b/py-blosc/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	blosc-1.2.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/b/blosc/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/blosc/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/blosc/python-blosc
diff --git a/py-bloscpack/Makefile b/py-bloscpack/Makefile
index 75abf38..35943d2 100644
--- a/py-bloscpack/Makefile
+++ b/py-bloscpack/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	bloscpack-0.6.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/b/bloscpack/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/bloscpack/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/esc/bloscpack
diff --git a/py-bokeh/Makefile b/py-bokeh/Makefile
index 5ae15c9..57f25e9 100644
--- a/py-bokeh/Makefile
+++ b/py-bokeh/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	bokeh-0.9.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	graphics python
-MASTER_SITES=	https://pypi.python.org/packages/source/b/bokeh/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/bokeh/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/bokeh/bokeh
diff --git a/py-booktype/Makefile b/py-booktype/Makefile
index 95a8df5..2c482e2 100644
--- a/py-booktype/Makefile
+++ b/py-booktype/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Booktype-1.5
 PKGNAME=	${PYPKGPREFIX}-booktype-1.5
 CATEGORIES=	textproc
-MASTER_SITES=	http://pypi.python.org/packages/source/B/Booktype/
+MASTER_SITES=	${MASTER_SITE_PYPI:=B/Booktype/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://booki-dev.flossmanuals.net/
diff --git a/py-bottleneck/Makefile b/py-bottleneck/Makefile
index ece1a7a..b53bfa2 100644
--- a/py-bottleneck/Makefile
+++ b/py-bottleneck/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Bottleneck-1.0.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/B/Bottleneck/
+MASTER_SITES=	${MASTER_SITE_PYPI:=B/Bottleneck/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://berkeleyanalytics.com/bottleneck/
diff --git a/py-bravo/Makefile b/py-bravo/Makefile
index 1b22e8a..bcaab64 100644
--- a/py-bravo/Makefile
+++ b/py-bravo/Makefile
@@ -4,7 +4,7 @@ DISTNAME=		MostAwesomeDude-bravo-1.8.1-0-gf6cb5fe
 BRAVO_VERSION=		1.8.1
 PKGNAME=		${PYPKGPREFIX}-bravo-${BRAVO_VERSION}
 CATEGORIES=		games
-# MASTER_SITES=		http://pypi.python.org/packages/source/B/Bravo/
+# MASTER_SITES=		${MASTER_SITE_PYPI:=B/Bravo/}
 MASTER_SITES=		https://github.com/MostAwesomeDude/bravo/tarball/${BRAVO_VERSION}/
 
 MAINTAINER=		eric%cirr.com@localhost
diff --git a/py-brewer2mpl/Makefile b/py-brewer2mpl/Makefile
index e2da94e..bff9a9f 100644
--- a/py-brewer2mpl/Makefile
+++ b/py-brewer2mpl/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	brewer2mpl-1.4.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	graphics
-MASTER_SITES=	https://pypi.python.org/packages/source/b/brewer2mpl/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/brewer2mpl/}
 EXTRACT_SUFX=	.zip#md5=4d467ade7b575ce0e39f51ebe8f6e1fb
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-brian/Makefile b/py-brian/Makefile
index 7453c5e..a42ddad 100644
--- a/py-brian/Makefile
+++ b/py-brian/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	brian-1.1.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	1
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/b/brian/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/brian/}
 EXTRACT_SUFX=	.zip#md5=1061bf5db014c9194c232e37b5715e46
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-bxa/Makefile b/py-bxa/Makefile
index a30c6d6..e96a8d9 100644
--- a/py-bxa/Makefile
+++ b/py-bxa/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	bxa-2.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/b/bxa/
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/bxa/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/JohannesBuchner/BXA/
diff --git a/py-bytecodeassembler/Makefile b/py-bytecodeassembler/Makefile
index 4385d95..2cdd188 100644
--- a/py-bytecodeassembler/Makefile
+++ b/py-bytecodeassembler/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	BytecodeAssembler-0.5.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/B/b/S/A/a/}
 CATEGORIES=	devel
-MASTER_SITES=	http://pypi.python.org/packages/source/B/BytecodeAssembler/
+MASTER_SITES=	${MASTER_SITE_PYPI:=B/BytecodeAssembler/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
diff --git a/py-calphad/Makefile b/py-calphad/Makefile
index 6112cc5..afbc6a3 100644
--- a/py-calphad/Makefile
+++ b/py-calphad/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pycalphad-0.1.1.post1
  PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pycalphad/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pycalphad/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/richardotis/pycalphad
diff --git a/py-cameo/Makefile b/py-cameo/Makefile
index fd90e64..ca4d3b7 100644
--- a/py-cameo/Makefile
+++ b/py-cameo/Makefile
@@ -3,11 +3,11 @@
 DISTNAME=	cameo-0.4.9
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	category
-MASTER_SITES=	https://pypi.python.org/packages/source/c/cameo/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cameo/}
 
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/c/cameo/
+HOMEPAGE=	${MASTER_SITE_PYPI:=c/cameo/}
 COMMENT=	Computer aided metabolic engineering & optimziation
 LICENSE=	apache-2.0
 
diff --git a/py-cartopy/Makefile b/py-cartopy/Makefile
index bde0729..5633a62 100644
--- a/py-cartopy/Makefile
+++ b/py-cartopy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Cartopy-0.13.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	geography
-MASTER_SITES=	https://pypi.python.org/packages/source/C/Cartopy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=C/Cartopy/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://scitools.org.uk/cartopy/docs/latest/
diff --git a/py-cbc/Makefile b/py-cbc/Makefile
index e13ea25..8342c60 100644
--- a/py-cbc/Makefile
+++ b/py-cbc/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	PyCBC-1.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/Py//tl}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/P/PyCBC/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/PyCBC/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/ligo-cbc/pycbc
diff --git a/py-ccdproc/Makefile b/py-ccdproc/Makefile
index e08431c..1d0692f 100644
--- a/py-ccdproc/Makefile
+++ b/py-ccdproc/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ccdproc-0.3.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	geography
-MASTER_SITES=	https://pypi.python.org/packages/source/c/ccdproc/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/ccdproc/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://ccdproc.readthedocs.org/
diff --git a/py-cclib/Makefile b/py-cclib/Makefile
index 29eddf3..2522399 100644
--- a/py-cclib/Makefile
+++ b/py-cclib/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	cclib-1.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	1
 CATEGORIES=	biology python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/cclib/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cclib/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://cclib.sourceforge.net/wiki/index.php/Main_Page
diff --git a/py-ccuracy/Makefile b/py-ccuracy/Makefile
index 8efea8d..339d233 100644
--- a/py-ccuracy/Makefile
+++ b/py-ccuracy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Pyccuracy-1.2.23
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	http://pypi.python.org/packages/source/P/Pyccuracy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/Pyccuracy/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://www.pyccuracy.org/
diff --git a/py-cerridwen/Makefile b/py-cerridwen/Makefile
index 977c31a..d7a3c85 100644
--- a/py-cerridwen/Makefile
+++ b/py-cerridwen/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	cerridwen-1.3.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	time python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/cerridwen/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cerridwen/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://cerridwen.viridian-project.de/
diff --git a/py-cf-python/Makefile b/py-cf-python/Makefile
index 094b31f..520a6dc 100644
--- a/py-cf-python/Makefile
+++ b/py-cf-python/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	cf-python-1.0.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/cf-python/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cf-python/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://cfpython.bitbucket.org/
diff --git a/py-chaintipy/Makefile b/py-chaintipy/Makefile
index 01765b2..560dfdd 100644
--- a/py-chaintipy/Makefile
+++ b/py-chaintipy/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	ChiantiPy-0.1.tar
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/C/c/S/P/p/S/.tar//}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/C/ChiantiPy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=C/ChiantiPy/}
 EXTRACT_SUFX=	.gz
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-chebpy/Makefile b/py-chebpy/Makefile
index 8ce211a..1c3e4a1 100644
--- a/py-chebpy/Makefile
+++ b/py-chebpy/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	chebpy-0.2
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/c/chebpy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/chebpy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	 https://bitbucket.org/liuyxpp/chebpy
diff --git a/py-chemlab/Makefile b/py-chemlab/Makefile
index e9afe9f..b2b1683 100644
--- a/py-chemlab/Makefile
+++ b/py-chemlab/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	chemlab-0.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology
-MASTER_SITES=	https://pypi.python.org/packages/source/c/chemlab/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/chemlab/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/c/chemlab/
+HOMEPAGE=	${MASTER_SITE_PYPI:=c/chemlab/}
 COMMENT=	The python chemistry library you were waiting for
 LICENSE=	gnu-gpl-v3
 
diff --git a/py-chemview/Makefile b/py-chemview/Makefile
index 734c185..8be4bb2 100644
--- a/py-chemview/Makefile
+++ b/py-chemview/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	chemview-0.1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology
-MASTER_SITES=	https://pypi.python.org/packages/source/c/chemview/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/chemview/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/gabrielelanaro/chemview
diff --git a/py-chinup/Makefile b/py-chinup/Makefile
index 6576391..7eca613 100644
--- a/py-chinup/Makefile
+++ b/py-chinup/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	chinup-0.2.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	net
-MASTER_SITES=	https://pypi.python.org/packages/source/c/chinup/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/chinup/}
 
 MAINTAINER= kamelderouiche%yahoo.com@localhost	
 HOMEPAGE=	https://github.com/pagepart/chinup
diff --git a/py-chompack/Makefile b/py-chompack/Makefile
index 375f59a..173606a 100644
--- a/py-chompack/Makefile
+++ b/py-chompack/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	chompack-2.0.0
 PKGNAME=   	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/chompack/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/chompack/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://cvxopt.github.io/chompack/
diff --git a/py-ciabatta/Makefile b/py-ciabatta/Makefile
index a4da340..50a68f6 100644
--- a/py-ciabatta/Makefile
+++ b/py-ciabatta/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ciabatta-0.4.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/c/ciabatta/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/ciabatta/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/eddiejessup/ciabatta
diff --git a/py-cito/Makefile b/py-cito/Makefile
index 09d752e..4e57fe6 100644
--- a/py-cito/Makefile
+++ b/py-cito/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	cito-1.9.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/c/cito/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cito/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/tunnell/cito
diff --git a/py-clickatell/Makefile b/py-clickatell/Makefile
index 237f2f7..e1f4bc7 100644
--- a/py-clickatell/Makefile
+++ b/py-clickatell/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	clickatell-0.1.1
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=     net
-MASTER_SITES=	https://pypi.python.org/packages/source/c/clickatell/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/clickatell/}
 
 MAINTAINER=     pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/c/clickatell/
+HOMEPAGE=	${MASTER_SITE_PYPI:=c/clickatell/}
 COMMENT=        Library for interacting with the Clickatell SMS Gateway
 LICENSE=        gnu-gpl-v2
 
diff --git a/py-cliff/Makefile b/py-cliff/Makefile
index ecc8f6d..9c2b485 100644
--- a/py-cliff/Makefile
+++ b/py-cliff/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	cliff-1.6.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/cliff/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cliff/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://launchpad.net/python-cliff
diff --git a/py-cligj/Makefile b/py-cligj/Makefile
index 6437e3e..7b38396 100644
--- a/py-cligj/Makefile
+++ b/py-cligj/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	cligj-0.2.0
  PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	geography
-MASTER_SITES=	https://pypi.python.org/packages/source/c/cligj/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cligj/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	 https://github.com/mapbox/cligj
diff --git a/py-clint/Makefile b/py-clint/Makefile
index ab6b798..d7dbf8b 100644
--- a/py-clint/Makefile
+++ b/py-clint/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	clint-0.5.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel  python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/clint/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/clint/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/kennethreitz/clint
diff --git a/py-clnum/Makefile b/py-clnum/Makefile
index 83f2cc0..fbb0a99 100644
--- a/py-clnum/Makefile
+++ b/py-clnum/Makefile
@@ -4,10 +4,10 @@
 DISTNAME=	clnum-1.6
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/c/clnum/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/clnum/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	http://pypi.python.org/packages/source/c/clnum/
+HOMEPAGE=	${MASTER_SITE_PYPI:=c/clnum/}
 COMMENT=	Rational and arbitrary precision floating point numbers
 LICENSE=	gnu-gpl-v3
 
diff --git a/py-clonedigger-jl/Makefile b/py-clonedigger-jl/Makefile
index 784fa45..1058158 100644
--- a/py-clonedigger-jl/Makefile
+++ b/py-clonedigger-jl/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	clonedigger-jl-1.0.7
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/c/clonedigger-jl/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/clonedigger-jl/}
 
 MAINTAINER=	kamelderouiche%yaho..com@localhost
 HOMEPAGE=	https://github.com/jlachowski/clonedigger
diff --git a/py-clonedigger/Makefile b/py-clonedigger/Makefile
index bddcb18..5e1af1c 100644
--- a/py-clonedigger/Makefile
+++ b/py-clonedigger/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	clonedigger-1.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	1
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/clonedigger/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/clonedigger/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://clonedigger.sourceforge.net/
diff --git a/py-cloudlib/Makefile b/py-cloudlib/Makefile
index 2831fdf..d045858 100644
--- a/py-cloudlib/Makefile
+++ b/py-cloudlib/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	cloudlib-0.3.0
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/cloudlib/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cloudlib/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/cloudnull/cloudlib
diff --git a/py-cma/Makefile b/py-cma/Makefile
index c2f33f7..0ed9607 100644
--- a/py-cma/Makefile
+++ b/py-cma/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	cma-1.1.01
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 EGG_NAME=	${DISTNAME:S/1.1.01/1.1.1/}
 CATEGORIES=     math python
-MASTER_SITES=   https://pypi.python.org/packages/source/c/cma/
+MASTER_SITES=   ${MASTER_SITE_PYPI:=c/cma/}
 
 MAINTAINER=     jihbed.research%gmail.com@localhost
 HOMEPAGE=       https://www.lri.fr/~hansen/cmaes_inmatlab.html#python
diff --git a/py-cmd2/Makefile b/py-cmd2/Makefile
index 50420be..5117d0d 100644
--- a/py-cmd2/Makefile
+++ b/py-cmd2/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	cmd2-0.6.7
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/cmd2/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cmd2/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/c/cmd2/
+HOMEPAGE=	${MASTER_SITE_PYPI:=c/cmd2/}
 COMMENT=	Extra features for standard library's cmd module
 LICENSE=	mit
 
diff --git a/py-cobra/Makefile b/py-cobra/Makefile
index 2d6ec53..e8f31f5 100644
--- a/py-cobra/Makefile
+++ b/py-cobra/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	cobra-0.4.0b1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology
-MASTER_SITES=	https://pypi.python.org/packages/source/c/cobra/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cobra/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://opencobra.github.io/cobrapy
diff --git a/py-codepy/Makefile b/py-codepy/Makefile
index 3d2490e..271bedc 100644
--- a/py-codepy/Makefile
+++ b/py-codepy/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	codepy-0.90
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	1
 CATEGORIES=	devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/c/codepy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/codepy/}
 EXTRACT_SUFX=	.tar.gz#md5=72efff7486689f778f1b1f82a87b2d12
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
diff --git a/py-cogapp/Makefile b/py-cogapp/Makefile
index f528706..c699690 100644
--- a/py-cogapp/Makefile
+++ b/py-cogapp/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	cogapp-2.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/cogapp/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cogapp/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://nedbatchelder.com/code/cog
diff --git a/py-cogent/Makefile b/py-cogent/Makefile
index 66e3d6a..b556d61 100644
--- a/py-cogent/Makefile
+++ b/py-cogent/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	cogent-1.4.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	 biology python
-MASTER_SITES=	http://pypi.python.org/packages/source/c/cogent/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cogent/}
 EXTRACT_SUFX=	.tgz#md5=732d19ab6f4ded2a75a3ae77eaea9872
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-colorlog/Makefile b/py-colorlog/Makefile
index 90177b5..1a181ac 100644
--- a/py-colorlog/Makefile
+++ b/py-colorlog/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	colorlog-2.6.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel sysutils misc
-MASTER_SITES=	https://pypi.python.org/packages/source/c/colorlog/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/colorlog/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/borntyping/python-colorlog
diff --git a/py-complexsystems/Makefile b/py-complexsystems/Makefile
index 9284a40..84fb388 100644
--- a/py-complexsystems/Makefile
+++ b/py-complexsystems/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ComplexSystems-0.3.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/C/ComplexSystems/
+MASTER_SITES=	${MASTER_SITE_PYPI:=C/ComplexSystems/}
 
 MAINTAINER= jihbed.research%gmail.com@localhost
 HOMEPAGE= http://bitbucket.org/vgauthier/complex-systems/
diff --git a/py-concepts/Makefile b/py-concepts/Makefile
index 24bf8a1..7e2385d 100644
--- a/py-concepts/Makefile
+++ b/py-concepts/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	concepts-0.2.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/c/concepts/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/concepts/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-conda-env/Makefile b/py-conda-env/Makefile
index 2146555..dd9c591 100644
--- a/py-conda-env/Makefile
+++ b/py-conda-env/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	conda-env-2.4.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	sysutils devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/conda-env/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/conda-env/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/conda/conda-env
diff --git a/py-conda/Makefile b/py-conda/Makefile
index 01c53dc..607ccb0 100644
--- a/py-conda/Makefile
+++ b/py-conda/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	conda-3.17.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel sysutils python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/conda/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/conda/}
 EXTRACT_SUFX=	.tar.bz2
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-consensus/Makefile b/py-consensus/Makefile
index a59bf36..c1803dd 100644
--- a/py-consensus/Makefile
+++ b/py-consensus/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pyconsensus-0.5.8
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyconsensus/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyconsensus/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/AugurProject/pyconsensus
diff --git a/py-corpus/Makefile b/py-corpus/Makefile
index 163608f..4e05d9f 100644
--- a/py-corpus/Makefile
+++ b/py-corpus/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	PyCorpus-0.1
 PKGNAME=   	${PYPKGPREFIX}-${DISTNAME:S/Py//tl}
 CATEGORIES=	textproc
-MASTER_SITES=	https://pypi.python.org/packages/source/P/PyCorpus/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/PyCorpus/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	 http://www.alfanous.org/
diff --git a/py-corrfitter/Makefile b/py-corrfitter/Makefile
index 8a2d36e..c0bffdb 100644
--- a/py-corrfitter/Makefile
+++ b/py-corrfitter/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	corrfitter-3.7
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/corrfitter/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/corrfitter/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/gplepage/corrfitter.git
diff --git a/py-cosat/Makefile b/py-cosat/Makefile
index 63760e9..35525dd 100644
--- a/py-cosat/Makefile
+++ b/py-cosat/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pycosat-0.6.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pycosat/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pycosat/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/ContinuumIO/pycosat
diff --git a/py-cosmolopy/Makefile b/py-cosmolopy/Makefile
index ec5791f..29e8126 100644
--- a/py-cosmolopy/Makefile
+++ b/py-cosmolopy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	CosmoloPy-0.1.104
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/C/CosmoloPy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=C/CosmoloPy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://roban.github.com/CosmoloPy/
diff --git a/py-coveralls/Makefile b/py-coveralls/Makefile
index 9cd2a45..e11990a 100644
--- a/py-coveralls/Makefile
+++ b/py-coveralls/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	python-coveralls-2.4.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/python-//}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/python-coveralls/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/python-coveralls/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://github.com/z4r/python-coveralls
diff --git a/py-crontab/Makefile b/py-crontab/Makefile
index ad536fe..b6d70f9 100644
--- a/py-crontab/Makefile
+++ b/py-crontab/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	python-crontab-1.9.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/python-//}
 CATEGORIES=	sysutils python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/python-crontab/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/python-crontab/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://launchpad.net/python-crontab
diff --git a/py-cryptoim/Makefile b/py-cryptoim/Makefile
index 973f8c0..1c9c75b 100644
--- a/py-cryptoim/Makefile
+++ b/py-cryptoim/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	CryptoIM-0.1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/Py//tl}
 CATEGORIES=	security
-MASTER_SITES=	https://pypi.python.org/packages/source/C/CryptoIM/
+MASTER_SITES=	${MASTER_SITE_PYPI:=C/CryptoIM/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/CryptoIM/
diff --git a/py-csa/Makefile b/py-csa/Makefile
index 59e01f0..3ac86e6 100644
--- a/py-csa/Makefile
+++ b/py-csa/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	csa-0.0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math  python
-MASTER_SITES=	http://pypi.python.org/packages/source/c/csa/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/csa/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://software.incf.org/software/csa/
diff --git a/py-csb/Makefile b/py-csb/Makefile
index 7141614..cd92dfc 100644
--- a/py-csb/Makefile
+++ b/py-csb/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	csb-1.2.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/csb/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/csb/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-cscope/Makefile b/py-cscope/Makefile
index 0ff0f84..bbab0b2 100644
--- a/py-cscope/Makefile
+++ b/py-cscope/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pycscope-1.2.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pycscope/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pycscope/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/pycscope/
diff --git a/py-cse/Makefile b/py-cse/Makefile
index af912ed..48d3e74 100644
--- a/py-cse/Makefile
+++ b/py-cse/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pycse-1.42
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pycse/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pycse/}
 EXTRACT_SUFX=	.zip#md5=acb390d6ddb068c301ae5debabe0f37c
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-ctutils/Makefile b/py-ctutils/Makefile
index ca00a69..4aaadf1 100644
--- a/py-ctutils/Makefile
+++ b/py-ctutils/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ctutils-0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/c/ctutils/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/ctutils/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/ctutils
diff --git a/py-cubicweb/Makefile b/py-cubicweb/Makefile
index ce3e485..fc337f7 100644
--- a/py-cubicweb/Makefile
+++ b/py-cubicweb/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	cubicweb-3.19.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/cubicweb/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cubicweb/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://www.cubicweb.org/
diff --git a/py-cvxpy/Makefile b/py-cvxpy/Makefile
index d553ea1..b04faaf 100644
--- a/py-cvxpy/Makefile
+++ b/py-cvxpy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	cvxpy-0.2.15
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/cvxpy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cvxpy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/cvxgrp/cvxpy/
diff --git a/py-cxnet/Makefile b/py-cxnet/Makefile
index fd2100d..1d2eabd 100644
--- a/py-cxnet/Makefile
+++ b/py-cxnet/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	cxnet-0.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/c/cxnet/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cxnet/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://django.arek.uni-obuda.hu/cxnet/doc
diff --git a/py-cxvpy/Makefile b/py-cxvpy/Makefile
index f173cdb..9197418 100644
--- a/py-cxvpy/Makefile
+++ b/py-cxvpy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	cvxpy-0.2.7
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/cvxpy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cvxpy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/cvxgrp/cvxpy/
diff --git a/py-cythongsl/Makefile b/py-cythongsl/Makefile
index 759c7c1..cd848dd 100644
--- a/py-cythongsl/Makefile
+++ b/py-cythongsl/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	CythonGSL-0.1
 PKGNAME=	${PYPKGPREFIX}-cythongsl-0.1
 CATEGORIES=	devel math python
-MASTER_SITES=	http://pypi.python.org/packages/source/C/CythonGSL/
+MASTER_SITES=	${MASTER_SITE_PYPI:=C/CythonGSL/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/twiecki/CythonGSL
diff --git a/py-cytoolz/Makefile b/py-cytoolz/Makefile
index c2141b1..494f63c 100644
--- a/py-cytoolz/Makefile
+++ b/py-cytoolz/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	cytoolz-0.6.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/c/cytoolz/
+MASTER_SITES=	${MASTER_SITE_PYPI:=c/cytoolz/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/pytoolz/cytoolz
diff --git a/py-da/Makefile b/py-da/Makefile
index 4dab3c6..a804ece 100644
--- a/py-da/Makefile
+++ b/py-da/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pyda-1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyda/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyda/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://hickmank.github.io/pyda
diff --git a/py-dana/Makefile b/py-dana/Makefile
index 8a515f1..a6705c7 100644
--- a/py-dana/Makefile
+++ b/py-dana/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	dana-0.3.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/d/dana/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/dana/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://dana.loria.fr/
diff --git a/py-das/Makefile b/py-das/Makefile
index ef58d5b..1bc5a66 100644
--- a/py-das/Makefile
+++ b/py-das/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pydas-0.2.32
 PKGNAME=	${PYPKGPREFIX}-das-0.2.32
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pydas/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pydas/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/midasplatform/pydas
diff --git a/py-datarray/Makefile b/py-datarray/Makefile
index 8d2f75c..dcaaebd 100644
--- a/py-datarray/Makefile
+++ b/py-datarray/Makefile
@@ -2,7 +2,7 @@
 
 DISTNAME=	datarray-0.0.6
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/d/datarray/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/datarray/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/fperez/datarray
diff --git a/py-datatree/Makefile b/py-datatree/Makefile
index df91a0b..8d3684c 100644
--- a/py-datatree/Makefile
+++ b/py-datatree/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	datatree-0.1.8
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc python
-MASTER_SITES=	http://pypi.python.org/packages/source/d/datatree/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/datatree/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	https://github.com/bigjason/datatree
diff --git a/py-dclab/Makefile b/py-dclab/Makefile
index 4067541..eebbc8e 100644
--- a/py-dclab/Makefile
+++ b/py-dclab/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	dclab-0.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/d/dclab/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/dclab/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/ZellMechanik-Dresden/dclab
diff --git a/py-dcpf/Makefile b/py-dcpf/Makefile
index 4f7f95d..08d467d 100644
--- a/py-dcpf/Makefile
+++ b/py-dcpf/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	pydcpf-1.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S//py/}
 CATEGORIES=	comms python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pydcpf/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pydcpf/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/p/pydcpf/
+HOMEPAGE=	${MASTER_SITE_PYPI:=p/pydcpf/}
 COMMENT=	Python device communications protocol framework
 LICENSE=	gnu-gpl-v3
 
diff --git a/py-debacl/Makefile b/py-debacl/Makefile
index 0e08273..eb2f7bf 100644
--- a/py-debacl/Makefile
+++ b/py-debacl/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	debacl-0.2.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/d/debacl/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/debacl/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/CoAxLab/DeBaCl
diff --git a/py-decimalpy/Makefile b/py-decimalpy/Makefile
index 3679368..fc1fba0 100644
--- a/py-decimalpy/Makefile
+++ b/py-decimalpy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	decimalpy-0.101
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/d/decimalpy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/decimalpy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.bruunisejs.dk/PythonHacks/
diff --git a/py-decode/Makefile b/py-decode/Makefile
index 91e06e0..25606d0 100644
--- a/py-decode/Makefile
+++ b/py-decode/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	pydecode-0.2.12
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pydecode/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pydecode/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/p/pydecode/
+HOMEPAGE=	${MASTER_SITE_PYPI:=p/pydecode/}
 COMMENT=	Dynamic programming toolkit
 
 USE_LANGUAGES=	c c++
diff --git a/py-decoratortools/Makefile b/py-decoratortools/Makefile
index 2ff694a..0beb098 100644
--- a/py-decoratortools/Makefile
+++ b/py-decoratortools/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	DecoratorTools-1.8
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/D/d/S/T/t/}
 CATEGORIES=	devel
-MASTER_SITES=	http://pypi.python.org/packages/source/D/DecoratorTools/
+MASTER_SITES=	${MASTER_SITE_PYPI:=D/DecoratorTools/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
diff --git a/py-delny/Makefile b/py-delny/Makefile
index 6bb946d..402f284 100644
--- a/py-delny/Makefile
+++ b/py-delny/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	Delny-0.4.1
 PKGNAME=	${PYPKGPREFIX}-delny-0.4.1
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/D/Delny/
+MASTER_SITES=	${MASTER_SITE_PYPI:=D/Delny/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://bitbucket.org/flub/delny
diff --git a/py-deltasigma/Makefile b/py-deltasigma/Makefile
index 9384726..d917d57 100644
--- a/py-deltasigma/Makefile
+++ b/py-deltasigma/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	deltasigma-0.2.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/d/deltasigma/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/deltasigma/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/ggventurini/python-deltasigma
diff --git a/py-dependenpy/Makefile b/py-dependenpy/Makefile
index 82755d9..c9eaf0f 100644
--- a/py-dependenpy/Makefile
+++ b/py-dependenpy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	dependenpy-v0.2-beta
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/d/dependenpy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/dependenpy/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/Pawamoy/dependenpy
diff --git a/py-descartes/Makefile b/py-descartes/Makefile
index d961aef..50f7c48 100644
--- a/py-descartes/Makefile
+++ b/py-descartes/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	descartes-1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/d/descartes/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/descartes/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://bitbucket.org/sgillies/descartes/
diff --git a/py-dexml/Makefile b/py-dexml/Makefile
index 44336c8..a51a496 100644
--- a/py-dexml/Makefile
+++ b/py-dexml/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	dexml-0.3.6
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc python
-MASTER_SITES=	http://pypi.python.org/packages/source/d/dexml/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/dexml/}
 
 MAINTAINER=	wenheping%gmail.com@localhost
 HOMEPAGE=	http://www.rfk.id.au/software/
diff --git a/py-dexy/Makefile b/py-dexy/Makefile
index 1e3bdd9..84dbfad 100644
--- a/py-dexy/Makefile
+++ b/py-dexy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	dexy-0.9.9.5
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc
-MASTER_SITES=	https://pypi.python.org/packages/source/d/dexy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/dexy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://dexy.it/
diff --git a/py-dexy_viewer/Makefile b/py-dexy_viewer/Makefile
index 0a90f42..abce768 100644
--- a/py-dexy_viewer/Makefile
+++ b/py-dexy_viewer/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	dexy_viewer-0.0.4
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc
-MASTER_SITES=	https://pypi.python.org/packages/source/d/dexy_viewer/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/dexy_viewer/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://dexy.it/
diff --git a/py-digraphtools/Makefile b/py-digraphtools/Makefile
index 9ac59ad..b6a64f2 100644
--- a/py-digraphtools/Makefile
+++ b/py-digraphtools/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	digraphtools-0.2.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math graphics python
-MASTER_SITES=	http://pypi.python.org/packages/source/d/digraphtools/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/digraphtools/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	https://github.com/dbasden/python-digraphtools
diff --git a/py-dill/Makefile b/py-dill/Makefile
index 6b1bba4..cc5ebb8 100644
--- a/py-dill/Makefile
+++ b/py-dill/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	dill-0.2.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/d/dill/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/dill/}
 EXTRACT_SUFX=	.tgz#md5=8e7d1ec5a0f150b536da4d0623c3931b
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-dimarray/Makefile b/py-dimarray/Makefile
index cbaba2e..a583c41 100644
--- a/py-dimarray/Makefile
+++ b/py-dimarray/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	dimarray-0.1.8
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/d/dimarray/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/dimarray/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://dimarray.readthedocs.org
diff --git a/py-divisi2/Makefile b/py-divisi2/Makefile
index f884e1a..881bbf7 100644
--- a/py-divisi2/Makefile
+++ b/py-divisi2/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	Divisi2-2.0b1.tar
 EGG_NAME=	${DISTNAME:S/.tar//}
 PKGNAME=	${PYPKGPREFIX}-divisi2-2.0b1
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/D/Divisi2/
+MASTER_SITES=	${MASTER_SITE_PYPI:=D/Divisi2/}
 EXTRACT_SUFX=	.gz#md5=f7c6fe6443032f180bcd8dd0b9c3e8ec
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-dj-static/Makefile b/py-dj-static/Makefile
index 3280d01..16912eb 100644
--- a/py-dj-static/Makefile
+++ b/py-dj-static/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	dj-static-0.0.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www python
-MASTER_SITES=	https://pypi.python.org/packages/source/d/dj-static/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/dj-static/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/d/dj-static/
+HOMEPAGE=	${MASTER_SITE_PYPI:=d/dj-static/}
 COMMENT=	Serve production static files with Django
 LICENSE=	modified-bsd
 
diff --git a/py-django-audiofield/Makefile b/py-django-audiofield/Makefile
index d8344e7..6802859 100644
--- a/py-django-audiofield/Makefile
+++ b/py-django-audiofield/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	django-audiofield-0.4.6
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	1
 CATEGORIES=	www audio python
-MASTER_SITES=	http://pypi.python.org/packages/source/d/django-audiofield/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/django-audiofield/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/Star2Billing/django-audiofield
diff --git a/py-django-gitrevision/Makefile b/py-django-gitrevision/Makefile
index cdfaaba..07df4b7 100644
--- a/py-django-gitrevision/Makefile
+++ b/py-django-gitrevision/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	django-gitrevision-0.1.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	3
 CATEGORIES=	devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/d/django-gitrevision/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/django-gitrevision/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://github.com/klen/django-gitrevision.git
diff --git a/py-django-helmholtz/Makefile b/py-django-helmholtz/Makefile
index e91af0f..1795280 100644
--- a/py-django-helmholtz/Makefile
+++ b/py-django-helmholtz/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	Helmholtz-0.1.0
 PKGNAME=	${PYPKGPREFIX}-django-${DISTNAME:S/H/h/}
 CATEGORIES=	databases python
-MASTER_SITES=	http://pypi.python.org/packages/source/H/Helmholtz/
+MASTER_SITES=	${MASTER_SITE_PYPI:=H/Helmholtz/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.dbunic.cnrs-gif.fr/helmholtz/
diff --git a/py-django-markwhat/Makefile b/py-django-markwhat/Makefile
index 82250e7..38d3e58 100644
--- a/py-django-markwhat/Makefile
+++ b/py-django-markwhat/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	django-markwhat-1.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	https://pypi.python.org/packages/source/d/django-markwhat/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/django-markwhat/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	 http://pypi.python.org/pypi/django-markwhat
diff --git a/py-django-mathjax/Makefile b/py-django-mathjax/Makefile
index 74723e8..b7bfb90 100644
--- a/py-django-mathjax/Makefile
+++ b/py-django-mathjax/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	django-mathjax-0.0.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math www python
-MASTER_SITES=	https://pypi.python.org/packages/source/d/django-mathjax/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/django-mathjax/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/kaleidos/django-mathjax
diff --git a/py-django-nose/Makefile b/py-django-nose/Makefile
index 62951db..50eadd8 100644
--- a/py-django-nose/Makefile
+++ b/py-django-nose/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	django-nose-0.1.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel www
-MASTER_SITES=	http://pypi.python.org/packages/source/d/django-nose/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/django-nose/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	http://pypi.python.org/packages/source/d/django-nose/
+HOMEPAGE=	${MASTER_SITE_PYPI:=d/django-nose/}
 COMMENT=	Django test runner that uses nose
 LICENSE=	modified-bsd
 
diff --git a/py-django-quran/Makefile b/py-django-quran/Makefile
index 498a620..27cbda7 100644
--- a/py-django-quran/Makefile
+++ b/py-django-quran/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	django-quran-0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	http://pypi.python.org/packages/source/d/django-quran/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/django-quran/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/idris/django-quran
diff --git a/py-django-uuidfield/Makefile b/py-django-uuidfield/Makefile
index 0dd0f70..949f205 100644
--- a/py-django-uuidfield/Makefile
+++ b/py-django-uuidfield/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	django-uuidfield-0.4.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	1
 CATEGORIES=	www python
-MASTER_SITES=	http://pypi.python.org/packages/source/d/django-uuidfield/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/django-uuidfield/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/dcramer/django-uuidfield
diff --git a/py-djangopypi2/Makefile b/py-djangopypi2/Makefile
index 4d60b7f..184d159 100644
--- a/py-djangopypi2/Makefile
+++ b/py-djangopypi2/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	djangopypi2-0.5.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	http://pypi.python.org/packages/source/d/djangopypi2/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/djangopypi2/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/benliles/djangopypi/
diff --git a/py-djvulibre/Makefile b/py-djvulibre/Makefile
index ad42f6b..ed6eff0 100644
--- a/py-djvulibre/Makefile
+++ b/py-djvulibre/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	python-djvulibre-0.3.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/python-//}
 CATEGORIES=	graphics textproc
-MASTER_SITES=	http://pypi.python.org/packages/source/p/python-djvulibre/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/python-djvulibre/}
 
 MAINTAINER=	ryoon%NetBSD.org@localhost
 HOMEPAGE=	http://jwilk.net/software/python-djvulibre
diff --git a/py-djvusmooth/Makefile b/py-djvusmooth/Makefile
index 84f22ea..f748190 100644
--- a/py-djvusmooth/Makefile
+++ b/py-djvusmooth/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	djvusmooth-0.2.10
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	graphics textproc
-MASTER_SITES=	http://pypi.python.org/packages/source/d/djvusmooth/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/djvusmooth/}
 
 MAINTAINER=	ryoon%NetBSD.org@localhost
 HOMEPAGE=	http://jwilk.net/software/djvusmooth
diff --git a/py-dolo/Makefile b/py-dolo/Makefile
index dbb149f..6a03e93 100644
--- a/py-dolo/Makefile
+++ b/py-dolo/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	dolo-0.4.9.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	1
 CATEGORIES=	finance python
-MASTER_SITES=	https://pypi.python.org/packages/source/d/dolo/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/dolo/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-drawnow/Makefile b/py-drawnow/Makefile
index d30e4fd..aecc9a0 100644
--- a/py-drawnow/Makefile
+++ b/py-drawnow/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	drawnow-0.44
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/d/drawnow/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/drawnow/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/d/drawnow/
+HOMEPAGE=	${MASTER_SITE_PYPI:=d/drawnow/}
 COMMENT=	MATLAB-like drawnow
 LICENSE=	mit
 
diff --git a/py-dsltools/Makefile b/py-dsltools/Makefile
index 1127655..cbb737e 100644
--- a/py-dsltools/Makefile
+++ b/py-dsltools/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	dsltools-0.2.6
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/d/dsltools/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/dsltools/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/iskandr/dsltools
diff --git a/py-dubins/Makefile b/py-dubins/Makefile
index 393f04b..7963845 100644
--- a/py-dubins/Makefile
+++ b/py-dubins/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	dubins-0.9.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/d/dubins/
+MASTER_SITES=	${MASTER_SITE_PYPI:=d/dubins/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	 http://github.com/AndrewWalker/pydubins
diff --git a/py-easydev/Makefile b/py-easydev/Makefile
index 2722506..b850a7f 100644
--- a/py-easydev/Makefile
+++ b/py-easydev/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	easydev-0.6.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/e/easydev/
+MASTER_SITES=	${MASTER_SITE_PYPI:=e/easydev/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://packages.python.org/easydev/
diff --git a/py-easymodeler/Makefile b/py-easymodeler/Makefile
index cde81f0..f8424b3 100644
--- a/py-easymodeler/Makefile
+++ b/py-easymodeler/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	EasyModeler-2.2.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/E/EasyModeler/
+MASTER_SITES=	${MASTER_SITE_PYPI:=E/EasyModeler/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-ecos/Makefile b/py-ecos/Makefile
index a338246..2a141b4 100644
--- a/py-ecos/Makefile
+++ b/py-ecos/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ecos-1.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/e/ecos/
+MASTER_SITES=	${MASTER_SITE_PYPI:=e/ecos/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/embotech/ecos
diff --git a/py-emcee/Makefile b/py-emcee/Makefile
index f16017a..3188fcc 100644
--- a/py-emcee/Makefile
+++ b/py-emcee/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	emcee-2.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/e/emcee/
+MASTER_SITES=	${MASTER_SITE_PYPI:=e/emcee/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://dan.iel.fm/emcee/current/
diff --git a/py-emmsa/Makefile b/py-emmsa/Makefile
index 151266a..d83d298 100644
--- a/py-emmsa/Makefile
+++ b/py-emmsa/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	EMMSA-0.0.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/E/EMMSA/
+MASTER_SITES=	${MASTER_SITE_PYPI:=E/EMMSA/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	http://pypi.python.org/packages/source/E/EMMSA/
+HOMEPAGE=	${MASTER_SITE_PYPI:=E/EMMSA/}
 COMMENT=	Multivariate Statistical Analysis for Electron Microscopy Data
 LICENSE=	mit
 
diff --git a/py-empirical/Makefile b/py-empirical/Makefile
index 59af7e2..053c0da 100644
--- a/py-empirical/Makefile
+++ b/py-empirical/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	empirical-0.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/e/empirical/
+MASTER_SITES=	${MASTER_SITE_PYPI:=e/empirical/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/e/empirical/
+HOMEPAGE=	${MASTER_SITE_PYPI:=e/empirical/}
 COMMENT=	Emperical Method of Fundamental Solutions solver for Python
 LICENSE=	gnu-gpl-v3
 
diff --git a/py-enre/Makefile b/py-enre/Makefile
index 6910b3c..c05f558 100644
--- a/py-enre/Makefile
+++ b/py-enre/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	enre-0.3.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	http://pypi.python.org/packages/source/e/enre/
+MASTER_SITES=	${MASTER_SITE_PYPI:=e/enre/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/enre
diff --git a/py-epigrass/Makefile b/py-epigrass/Makefile
index da5f5ea..f26744d 100644
--- a/py-epigrass/Makefile
+++ b/py-epigrass/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	epigrass-2.3.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology python
-MASTER_SITES=	https://pypi.python.org/packages/source/e/epigrass/
+MASTER_SITES=	${MASTER_SITE_PYPI:=e/epigrass/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://pypi.python.org/pypi/epigrass/
diff --git a/py-epipy/Makefile b/py-epipy/Makefile
index 0459574..0c55ac6 100644
--- a/py-epipy/Makefile
+++ b/py-epipy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	epipy-0.0.2.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/e/epipy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=e/epipy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/cmrivers/epipy
diff --git a/py-equation/Makefile b/py-equation/Makefile
index 6a7a010..f47ca46 100644
--- a/py-equation/Makefile
+++ b/py-equation/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	Equation-1.2.01
 EGG_NAME=	Equation-1.2.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/E/Equation/
+MASTER_SITES=	${MASTER_SITE_PYPI:=E/Equation/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/alphaomega-technology/Equation
diff --git a/py-errorhandler/Makefile b/py-errorhandler/Makefile
index eef8ec3..78134cf 100644
--- a/py-errorhandler/Makefile
+++ b/py-errorhandler/Makefile
@@ -5,7 +5,7 @@ VERS=				1.1.1
 DISTNAME=			errorhandler-${VERS}
 PKGNAME=			${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=			textproc
-MASTER_SITES=		http://pypi.python.org/packages/source/e/errorhandler/
+MASTER_SITES=		${MASTER_SITE_PYPI:=e/errorhandler/}
 
 MAINTAINER=			helgoman%users.sourceforge.net@localhost
 HOMEPAGE=			http://www.simplistix.co.uk/software/python/errorhandler
diff --git a/py-escher/Makefile b/py-escher/Makefile
index 0eeaed6..69d7ba2 100644
--- a/py-escher/Makefile
+++ b/py-escher/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Escher-1.1.2.post2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	biology
-MASTER_SITES=	https://pypi.python.org/packages/source/E/Escher/
+MASTER_SITES=	${MASTER_SITE_PYPI:=E/Escher/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://escher.github.io
diff --git a/py-etmtk/Makefile b/py-etmtk/Makefile
index 82a8724..28502e5 100644
--- a/py-etmtk/Makefile
+++ b/py-etmtk/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	etmtk-3.0.43
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	time
-MASTER_SITES=	https://pypi.python.org/packages/source/e/etmtk/
+MASTER_SITES=	${MASTER_SITE_PYPI:=e/etmtk/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://people.duke.edu/~dgraham/etmtk
diff --git a/py-eventlet/Makefile b/py-eventlet/Makefile
index 8289015..518359a 100644
--- a/py-eventlet/Makefile
+++ b/py-eventlet/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	eventlet-0.16.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/e/eventlet/
+MASTER_SITES=	${MASTER_SITE_PYPI:=e/eventlet/}
 
 MAINTAINER= 	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://eventlet.net/
diff --git a/py-exocode/Makefile b/py-exocode/Makefile
index 41db46a..64d0cf9 100644
--- a/py-exocode/Makefile
+++ b/py-exocode/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	exocode-1.2.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/e/exocode/
+MASTER_SITES=	${MASTER_SITE_PYPI:=e/exocode/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://bitbucket.org/leckman/exoplanets
diff --git a/py-extremes/Makefile b/py-extremes/Makefile
index 3ff81c1..057ff03 100644
--- a/py-extremes/Makefile
+++ b/py-extremes/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	Extremes-1.1.1
 EGG_NAME=	${DISTNAME}
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/E/e/}
 CATEGORIES=	devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/E/Extremes/
+MASTER_SITES=	${MASTER_SITE_PYPI:=E/Extremes/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
diff --git a/py-faker/Makefile b/py-faker/Makefile
index ad351d5..1b566c0 100644
--- a/py-faker/Makefile
+++ b/py-faker/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Faker-0.0.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/F/Faker/
+MASTER_SITES=	${MASTER_SITE_PYPI:=F/Faker/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/deepthawtz/faker
diff --git a/py-fanova/Makefile b/py-fanova/Makefile
index 60e981f..d45acb7 100644
--- a/py-fanova/Makefile
+++ b/py-fanova/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pyfanova-0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S//py/}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyfanova/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyfanova/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/automl/fanova
diff --git a/py-fatiando/Makefile b/py-fatiando/Makefile
index 88f986a..bfd15e3 100644
--- a/py-fatiando/Makefile
+++ b/py-fatiando/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	fatiando-0.0.1
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/f/fatiando/
+MASTER_SITES=	${MASTER_SITE_PYPI:=f/fatiando/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.fatiando.org/
diff --git a/py-fdasrsf/Makefile b/py-fdasrsf/Makefile
index 794717f..6df10ea 100644
--- a/py-fdasrsf/Makefile
+++ b/py-fdasrsf/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	fdasrsf-1.0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/f/fdasrsf/
+MASTER_SITES=	${MASTER_SITE_PYPI:=f/fdasrsf/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://stat.fsu.edu/~dtucker/research.html
diff --git a/py-fealty/Makefile b/py-fealty/Makefile
index b3180ac..282c8fc 100644
--- a/py-fealty/Makefile
+++ b/py-fealty/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	fealty-0.1.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/f/fealty/
+MASTER_SITES=	${MASTER_SITE_PYPI:=f/fealty/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/eddiejessup/fealty
diff --git a/py-fedmsg/Makefile b/py-fedmsg/Makefile
index bea0cbd..ff84c74 100644
--- a/py-fedmsg/Makefile
+++ b/py-fedmsg/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	fedmsg-0.16.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	sysutils devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/f/fedmsg/
+MASTER_SITES=	${MASTER_SITE_PYPI:=f/fedmsg/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/fedora-infra/fedmsg/
diff --git a/py-fiona/Makefile b/py-fiona/Makefile
index d976615..d7e3018 100644
--- a/py-fiona/Makefile
+++ b/py-fiona/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Fiona-1.6.0
  PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	geography python
-MASTER_SITES=	https://pypi.python.org/packages/source/F/Fiona/
+MASTER_SITES=	${MASTER_SITE_PYPI:=F/Fiona/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	 http://github.com/Toblerity/Fiona
diff --git a/py-fipy/Makefile b/py-fipy/Makefile
index 743c113..3039800 100644
--- a/py-fipy/Makefile
+++ b/py-fipy/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	FiPy-2.1.2
 EGG_NAME=	${DISTNAME}
 PKGNAME=	${PYPKGPREFIX}-fipy-2.1.2
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/F/FiPy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=F/FiPy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.ctcms.nist.gov/fipy/
diff --git a/py-fitsarray/Makefile b/py-fitsarray/Makefile
index 256962d..8cd3e16 100644
--- a/py-fitsarray/Makefile
+++ b/py-fitsarray/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	fitsarray-0.2.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/f/fitsarray/
+MASTER_SITES=	${MASTER_SITE_PYPI:=f/fitsarray/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi?%3Aaction=search&term=fitsarray&submit=search
diff --git a/py-fjd/Makefile b/py-fjd/Makefile
index 90d3534..f86aeb1 100644
--- a/py-fjd/Makefile
+++ b/py-fjd/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	fjd-0.1.42
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/f/fjd/
+MASTER_SITES=	${MASTER_SITE_PYPI:=f/fjd/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/nhoening/fjd/
diff --git a/py-flipper/Makefile b/py-flipper/Makefile
index db5d8cf..a3e349d 100644
--- a/py-flipper/Makefile
+++ b/py-flipper/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	flipper-0.8.6
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/f/flipper/
+MASTER_SITES=	${MASTER_SITE_PYPI:=f/flipper/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://bitbucket.org/Mark_Bell/flipper
diff --git a/py-fluiddyn/Makefile b/py-fluiddyn/Makefile
index 29ff3c0..6542ae5 100644
--- a/py-fluiddyn/Makefile
+++ b/py-fluiddyn/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	fluiddyn-0.0.10a7
  PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/f/fluiddyn/
+MASTER_SITES=	${MASTER_SITE_PYPI:=f/fluiddyn/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/f/fluiddyn/
+HOMEPAGE=	${MASTER_SITE_PYPI:=f/fluiddyn/}
 COMMENT=	Framework for studying fluid dynamics.
 LICENSE=	modified-bsd
 
diff --git a/py-fnss/Makefile b/py-fnss/Makefile
index a806eec..3d1c207 100644
--- a/py-fnss/Makefile
+++ b/py-fnss/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	fnss-0.5.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/f/fnss/
+MASTER_SITES=	${MASTER_SITE_PYPI:=f/fnss/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://fnss.github.io/
diff --git a/py-fortpy/Makefile b/py-fortpy/Makefile
index c585d20..82ca8b7 100644
--- a/py-fortpy/Makefile
+++ b/py-fortpy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Fortpy-1.1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	lang python
-MASTER_SITES=	https://pypi.python.org/packages/source/F/Fortpy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=F/Fortpy/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/rosenbrockc/fortpy
diff --git a/py-fs/Makefile b/py-fs/Makefile
index a517028..4f58bcd 100644
--- a/py-fs/Makefile
+++ b/py-fs/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	fs-0.5.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	1
 CATEGORIES=	filesystems python
-MASTER_SITES=	https://pypi.python.org/packages/source/f/fs/
+MASTER_SITES=	${MASTER_SITE_PYPI:=f/fs/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/fs/
diff --git a/py-fssa/Makefile b/py-fssa/Makefile
index cd302fd..1017853 100644
--- a/py-fssa/Makefile
+++ b/py-fssa/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	fssa-0.7.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/f/fssa/
+MASTER_SITES=	${MASTER_SITE_PYPI:=f/fssa/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/f/fssa/
+HOMEPAGE=	${MASTER_SITE_PYPI:=f/fssa/}
 COMMENT=	Package for finite-size scaling analysis at phase transitions
 LICENSE=	2-clause-bsd
 
diff --git a/py-functions/Makefile b/py-functions/Makefile
index 4815cc2..d48bb61 100644
--- a/py-functions/Makefile
+++ b/py-functions/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	functions-0.5.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	lang
-MASTER_SITES=	https://pypi.python.org/packages/source/f/functions/
+MASTER_SITES=	${MASTER_SITE_PYPI:=f/functions/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/creese/functions
diff --git a/py-fuzzpy/Makefile b/py-fuzzpy/Makefile
index bcab865..2531a9d 100644
--- a/py-fuzzpy/Makefile
+++ b/py-fuzzpy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	fuzzpy-0.4.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/f/fuzzpy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=f/fuzzpy/}
 EXTRACT_SUFX=	.tar.bz2
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-fwm-ensayo/Makefile b/py-fwm-ensayo/Makefile
index 198c3c7..47fbaa2 100644
--- a/py-fwm-ensayo/Makefile
+++ b/py-fwm-ensayo/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	fwm_ensayo-0.1.1
 PKGNAME=	${PYPKGPREFIX}-fwm-ensayo-0.1.1
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/f/fwm_ensayo/
+MASTER_SITES=	${MASTER_SITE_PYPI:=f/fwm_ensayo/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/fwm_ensayo/
diff --git a/py-galry/Makefile b/py-galry/Makefile
index 7c02e1d..0e67994 100644
--- a/py-galry/Makefile
+++ b/py-galry/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	galry-0.2.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	graphics parallel
-MASTER_SITES=	https://pypi.python.org/packages/source/g/galry/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/galry/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-gammafit/Makefile b/py-gammafit/Makefile
index a5476b8..dae5e2e 100644
--- a/py-gammafit/Makefile
+++ b/py-gammafit/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	gammafit-0.1.dev395
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 EGG_NAME=	${DISTNAME:S/395//}-${PYVERSSUFFIX}.egg
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/g/gammafit/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/gammafit/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/zblz/gammafit
diff --git a/py-gaphas/Makefile b/py-gaphas/Makefile
index 23e95dc..1d4d12c 100644
--- a/py-gaphas/Makefile
+++ b/py-gaphas/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	gaphas-0.7.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	1
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/g/gaphas/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/gaphas/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://gaphor.sourceforge.net/
diff --git a/py-gato/Makefile b/py-gato/Makefile
index 4ed2b8a..3f61d6e 100644
--- a/py-gato/Makefile
+++ b/py-gato/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Gato-1.2.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math graphics python
-MASTER_SITES=	https://pypi.python.org/packages/source/G/Gato/
+MASTER_SITES=	${MASTER_SITE_PYPI:=G/Gato/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://gato.sf.net/
diff --git a/py-gauss/Makefile b/py-gauss/Makefile
index c364391..6361d67 100644
--- a/py-gauss/Makefile
+++ b/py-gauss/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	pygauss-0.5.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	biology
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pygauss/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pygauss/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/p/pygauss/
+HOMEPAGE=	${MASTER_SITE_PYPI:=p/pygauss/}
 COMMENT=	Python API for Analysis of Gaussian Quantum Chemical Compuations
 LICENSE=	gnu-gpl-v3
 
diff --git a/py-genesis/Makefile b/py-genesis/Makefile
index ca3d10c..e83dc09 100644
--- a/py-genesis/Makefile
+++ b/py-genesis/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	genesis-0.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	1
 CATEGORIES=	python
-MASTER_SITES=	http://pypi.python.org/packages/source/g/genesis/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/genesis/}
 
 MAINTAINER=	slitvinov%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/genesis
diff --git a/py-geographiclib/Makefile b/py-geographiclib/Makefile
index 82b16db..ddd158d 100644
--- a/py-geographiclib/Makefile
+++ b/py-geographiclib/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	geographiclib-1.31
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	geography
-MASTER_SITES=	https://pypi.python.org/packages/source/g/geographiclib/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/geographiclib/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://geographiclib.sourceforge.net/
diff --git a/py-geoip/Makefile b/py-geoip/Makefile
index 8c8ef6d..4347717 100644
--- a/py-geoip/Makefile
+++ b/py-geoip/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pygeoip-0.3.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pygeoip/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pygeoip/}
 
 MAINTAINER=	bartosz.kuzma%gmail.com@localhost
 HOMEPAGE=	https://github.com/appliedsec/pygeoip
diff --git a/py-geopy/Makefile b/py-geopy/Makefile
index c9a8e57..1d937a8 100644
--- a/py-geopy/Makefile
+++ b/py-geopy/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	geopy-0.99
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	geography python
-MASTER_SITES=	https://pypi.python.org/packages/source/g/geopy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/geopy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/g/geopy/
+HOMEPAGE=	${MASTER_SITE_PYPI:=g/geopy/}
 COMMENT=	Python Geocoding Toolbox
 LICENSE=	mit
 
diff --git a/py-ghalatawi/Makefile b/py-ghalatawi/Makefile
index 1fac451..87d6a21 100644
--- a/py-ghalatawi/Makefile
+++ b/py-ghalatawi/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	ghalatawi-0.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	python textproc
-MASTER_SITES=	http://pypi.python.org/packages/source/g/ghalatawi/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/ghalatawi/}
 EXTRACT_SUFX=	.zip#md5=7afa6950e1786db9729f2582c451a2a9
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-git/Makefile b/py-git/Makefile
index 84cdade..b1ba817 100644
--- a/py-git/Makefile
+++ b/py-git/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	GitPython-0.3.2.RC1
 PKGNAME=	${PYPKGPREFIX}-git-0.3.2.rc1
 EGG_NAME=	${DISTNAME:S/.RC/rc/}
 CATEGORIES=	devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/G/GitPython/
+MASTER_SITES=	${MASTER_SITE_PYPI:=G/GitPython/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://gitorious.org/projects/git-python/
diff --git a/py-gitdb/Makefile b/py-gitdb/Makefile
index a552791..c1bac14 100644
--- a/py-gitdb/Makefile
+++ b/py-gitdb/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	gitdb-0.6.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/g/gitdb/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/gitdb/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	https://github.com/gitpython-developers/gitdb
diff --git a/py-gitpython/Makefile b/py-gitpython/Makefile
index 6e2b095..2aace9f 100644
--- a/py-gitpython/Makefile
+++ b/py-gitpython/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	GitPython-1.0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/G/GitPython/
+MASTER_SITES=	${MASTER_SITE_PYPI:=G/GitPython/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/gitpython-developers/GitPython
diff --git a/py-glespy/Makefile b/py-glespy/Makefile
index f120294..a76a6cc 100644
--- a/py-glespy/Makefile
+++ b/py-glespy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	glespy-0.1.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/g/glespy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/glespy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://pypi.python.org/pypi/glespy
diff --git a/py-gmane/Makefile b/py-gmane/Makefile
index b88621c..188c8c3 100644
--- a/py-gmane/Makefile
+++ b/py-gmane/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	gmane-0.1.dev25
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	mail
-MASTER_SITES=	https://pypi.python.org/packages/source/g/gmane/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/gmane/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/ttm/gmane
diff --git a/py-gmpy2/Makefile b/py-gmpy2/Makefile
index 3ad3c88..bdace87 100644
--- a/py-gmpy2/Makefile
+++ b/py-gmpy2/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	gmpy2-2.0.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/g/gmpy2/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/gmpy2/}
 EXTRACT_SUFX=	.zip#md5=95f008bcab6372164358123f43e3f490
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-gnm/Makefile b/py-gnm/Makefile
index 7c0e8b6..9d70041 100644
--- a/py-gnm/Makefile
+++ b/py-gnm/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	pygnm-0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/^py//}
 CATEGORIES=	biology python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pygnm/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pygnm/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.pitt.edu/~ahb12
diff --git a/py-go/Makefile b/py-go/Makefile
index df84878..3d0d253 100644
--- a/py-go/Makefile
+++ b/py-go/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pygo-0.2.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pygo/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pygo/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/muhamadazmy/python-pygo
diff --git a/py-goreutilities/Makefile b/py-goreutilities/Makefile
index ed0b270..c85583d 100644
--- a/py-goreutilities/Makefile
+++ b/py-goreutilities/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	GoreUtilities-0.5.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	wip
-MASTER_SITES=	https://pypi.python.org/packages/source/G/GoreUtilities/
+MASTER_SITES=	${MASTER_SITE_PYPI:=G/GoreUtilities/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://bitbucket.org/gorelab/goreutilities/
diff --git a/py-goulib/Makefile b/py-goulib/Makefile
index b0661af..93f9f33 100644
--- a/py-goulib/Makefile
+++ b/py-goulib/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Goulib-1.7.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/G/Goulib/
+MASTER_SITES=	${MASTER_SITE_PYPI:=G/Goulib/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-grab/Makefile b/py-grab/Makefile
index 1faeca1..5d58a31 100644
--- a/py-grab/Makefile
+++ b/py-grab/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	grab-0.6.30
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www python
-MASTER_SITES=	https://pypi.python.org/packages/source/g/grab/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/grab/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://grablib.org
diff --git a/py-graphmin/Makefile b/py-graphmin/Makefile
index 0908e02..371e46c 100644
--- a/py-graphmin/Makefile
+++ b/py-graphmin/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	graphmin-0.1.8
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www python
-MASTER_SITES=	http://pypi.python.org/packages/source/g/graphmin/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/graphmin/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	http://river.styx.org/ww/2010/10/graphmin
diff --git a/py-graphsim/Makefile b/py-graphsim/Makefile
index 6bd5b44..11ed417 100644
--- a/py-graphsim/Makefile
+++ b/py-graphsim/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	graphsim-0.2.6.8
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc math
-MASTER_SITES=	https://pypi.python.org/packages/source/g/graphsim/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/graphsim/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/caesar0301/graphsim
diff --git a/py-gratelpy/Makefile b/py-gratelpy/Makefile
index f6272f6..e20bb2c 100644
--- a/py-gratelpy/Makefile
+++ b/py-gratelpy/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	GraTeLPy-0.2.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/G/GraTeLPy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=G/GraTeLPy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/G/GraTeLPy/
+HOMEPAGE=	${MASTER_SITE_PYPI:=G/GraTeLPy/}
 COMMENT=	Graph theoretic linear stability analysis
 LICENSE=	gnu-gpl-v3
 
diff --git a/py-gravipy/Makefile b/py-gravipy/Makefile
index fffadfe..e311a80 100644
--- a/py-gravipy/Makefile
+++ b/py-gravipy/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	GraviPy-0.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/G/GraviPy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=G/GraviPy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/G/GraviPy/
+HOMEPAGE=	${MASTER_SITE_PYPI:=G/GraviPy/}
 COMMENT=	Tensor Calculus Package for General Relativity
 LICENSE=	2-clause-bsd
 
diff --git a/py-grpy/Makefile b/py-grpy/Makefile
index bc3c5e3..da0f7b0 100644
--- a/py-grpy/Makefile
+++ b/py-grpy/Makefile
@@ -4,7 +4,7 @@ VERSION=	0.2
 DISTNAME=	GRPy0.2
 PKGNAME=       ${PYPKGPREFIX}-grpy-${VERSION}
 CATEGORIES=	wip
-MASTER_SITES=	https://pypi.python.org/packages/source/G/GRPy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=G/GRPy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi?%3Aaction=search&term=GRPy&submit=search
diff --git a/py-gsw/Makefile b/py-gsw/Makefile
index 3dc79bf..a8b39b8 100644
--- a/py-gsw/Makefile
+++ b/py-gsw/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	gsw-3.0.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/g/gsw/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/gsw/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/seawater/
diff --git a/py-guppy/Makefile b/py-guppy/Makefile
index ddbfc27..963af41 100644
--- a/py-guppy/Makefile
+++ b/py-guppy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	guppy-0.1.9
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	http://pypi.python.org/packages/source/g/guppy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/guppy/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://guppy-pe.sourceforge.net/
diff --git a/py-gvar/Makefile b/py-gvar/Makefile
index 3de1101..301ece4 100644
--- a/py-gvar/Makefile
+++ b/py-gvar/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	gvar-4.6.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/g/gvar/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/gvar/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/gplepage/lsqfit.git
diff --git a/py-gwpy/Makefile b/py-gwpy/Makefile
index 0363b82..e9877e8 100644
--- a/py-gwpy/Makefile
+++ b/py-gwpy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	gwpy-0.1b3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/g/gwpy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/gwpy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://gwpy.github.io/
diff --git a/py-hamilton/Makefile b/py-hamilton/Makefile
index 0102c9f..dd624c2 100644
--- a/py-hamilton/Makefile
+++ b/py-hamilton/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	Hamilton-0.1.0
 PKGNAME=	${PYPKGPREFIX}-hamilton-0.1.0
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/H/Hamilton/
+MASTER_SITES=	${MASTER_SITE_PYPI:=H/Hamilton/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/H/Hamilton/
+HOMEPAGE=	${MASTER_SITE_PYPI:=H/Hamilton/}
 COMMENT= Visualize and control mechanic systems through solving these systems
 LICENSE=	gnu-gpl-v3
 
diff --git a/py-hcluster/Makefile b/py-hcluster/Makefile
index 530bf8f..86dd03f 100644
--- a/py-hcluster/Makefile
+++ b/py-hcluster/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	hcluster-0.2.0.tar
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/.tar//}
 CATEGORIES=	parallel math python
-MASTER_SITES=	http://pypi.python.org/packages/source/h/hcluster/
+MASTER_SITES=	${MASTER_SITE_PYPI:=h/hcluster/}
 EXTRACT_SUFX=	.gz
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-hddm/Makefile b/py-hddm/Makefile
index aa1dd94..04b9f65 100644
--- a/py-hddm/Makefile
+++ b/py-hddm/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	HDDM-0.5.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/H/HDDM/
+MASTER_SITES=	${MASTER_SITE_PYPI:=H/HDDM/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/hddm-devs/hddm
diff --git a/py-hdf5able/Makefile b/py-hdf5able/Makefile
index b188d20..3a4e1e2 100644
--- a/py-hdf5able/Makefile
+++ b/py-hdf5able/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	hdf5able-0.3.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/h/hdf5able/
+MASTER_SITES=	${MASTER_SITE_PYPI:=h/hdf5able/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://pypi.python.org/pypi/hdf5able/
diff --git a/py-hdf5storage/Makefile b/py-hdf5storage/Makefile
index 641a7af..429d189 100644
--- a/py-hdf5storage/Makefile
+++ b/py-hdf5storage/Makefile
@@ -3,11 +3,11 @@
 DISTNAME=	hdf5storage-0.1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/h/hdf5storage/
+MASTER_SITES=	${MASTER_SITE_PYPI:=h/hdf5storage/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/h/hdf5storage/
+HOMEPAGE=	${MASTER_SITE_PYPI:=h/hdf5storage/}
 COMMENT=	Utilities to read/write Python types to/from HDF5 files
 LICENSE=	modified-bsd
 
diff --git a/py-helio/Makefile b/py-helio/Makefile
index 9633f7f..9b14ddd 100644
--- a/py-helio/Makefile
+++ b/py-helio/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	helio-1.0.0b1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	https://pypi.python.org/packages/source/h/helio/
+MASTER_SITES=	${MASTER_SITE_PYPI:=h/helio/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/yellowpagesgroup/Helio
diff --git a/py-hgapi/Makefile b/py-hgapi/Makefile
index ef9390d..342eb1a 100644
--- a/py-hgapi/Makefile
+++ b/py-hgapi/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	hgapi-1.7.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/h/hgapi/
+MASTER_SITES=	${MASTER_SITE_PYPI:=h/hgapi/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://bitbucket.org/haard/hgapi
diff --git a/py-hieroglyph/Makefile b/py-hieroglyph/Makefile
index a44cd2d..2428e02 100644
--- a/py-hieroglyph/Makefile
+++ b/py-hieroglyph/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	hieroglyph-0.6.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	graphics python
-MASTER_SITES=	https://pypi.python.org/packages/source/h/hieroglyph/
+MASTER_SITES=	${MASTER_SITE_PYPI:=h/hieroglyph/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/h/hieroglyph/
+HOMEPAGE=	${MASTER_SITE_PYPI:=h/hieroglyph/}
 COMMENT=	Sphinx which builds HTML5 slides from ReStructured Text documents
 LICENSE=	2-clause-bsd
 
diff --git a/py-holoviews/Makefile b/py-holoviews/Makefile
index 22cb0bf..37e04f3 100644
--- a/py-holoviews/Makefile
+++ b/py-holoviews/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	holoviews-1.3.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	cad
-MASTER_SITES=	https://pypi.python.org/packages/source/h/holoviews/
+MASTER_SITES=	${MASTER_SITE_PYPI:=h/holoviews/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://ioam.github.com/holoviews/
diff --git a/py-hope/Makefile b/py-hope/Makefile
index fb78e2f..ee07b84 100644
--- a/py-hope/Makefile
+++ b/py-hope/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	hope-0.3.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/h/hope/
+MASTER_SITES=	${MASTER_SITE_PYPI:=h/hope/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://hope.phys.ethz.ch/
diff --git a/py-hurry-filesize/Makefile b/py-hurry-filesize/Makefile
index 62ad71d..65e4d9b 100644
--- a/py-hurry-filesize/Makefile
+++ b/py-hurry-filesize/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	hurry.filesize-0.9
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	sysutils python
-MASTER_SITES=	https://pypi.python.org/packages/source/h/hurry.filesize/
+MASTER_SITES=	${MASTER_SITE_PYPI:=h/hurry.filesize/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/h/hurry.filesize/
+HOMEPAGE=	${MASTER_SITE_PYPI:=h/hurry.filesize/}
 COMMENT=	Simple Python library for human readable file sizes
 LICENSE=	zpl-2.0
 
diff --git a/py-hyperspy/Makefile b/py-hyperspy/Makefile
index 75429e4..cc1b97d 100644
--- a/py-hyperspy/Makefile
+++ b/py-hyperspy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	hyperspy-0.7.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/h/hyperspy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=h/hyperspy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://hyperspy.org/
diff --git a/py-ibis/Makefile b/py-ibis/Makefile
index 4609444..68caf49 100644
--- a/py-ibis/Makefile
+++ b/py-ibis/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ibis-1.4.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	https://pypi.python.org/packages/source/i/ibis/
+MASTER_SITES=	${MASTER_SITE_PYPI:=i/ibis/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/dmulholland/ibis
diff --git a/py-icane/Makefile b/py-icane/Makefile
index 68024ff..cd1bddd 100644
--- a/py-icane/Makefile
+++ b/py-icane/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pyicane-0.1.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyicane/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyicane/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/predicador37/pyicane
diff --git a/py-ift-nifty/Makefile b/py-ift-nifty/Makefile
index 2fabc0f..24c7a90 100644
--- a/py-ift-nifty/Makefile
+++ b/py-ift-nifty/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ift-nifty-1.0.7
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/i/ift_nifty/
+MASTER_SITES=	${MASTER_SITE_PYPI:=i/ift_nifty/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.mpa-garching.mpg.de/ift/nifty/
diff --git a/py-igraph/Makefile b/py-igraph/Makefile
index 7f98b04..4f2286a 100644
--- a/py-igraph/Makefile
+++ b/py-igraph/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	python-igraph-0.5.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S|python-||}
 PKGREVISION=	3
 CATEGORIES=	graphics math python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/python-igraph/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/python-igraph/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://igraph.sourceforge.net/
diff --git a/py-imread/Makefile b/py-imread/Makefile
index 5ece914..25cd460 100644
--- a/py-imread/Makefile
+++ b/py-imread/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	imread-0.3.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	graphics python
-MASTER_SITES=	https://pypi.python.org/packages/source/i/imread/
+MASTER_SITES=	${MASTER_SITE_PYPI:=i/imread/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://luispedro.org/software/imread
diff --git a/py-imreg-dft/Makefile b/py-imreg-dft/Makefile
index 96bc420..4b3b8a6 100644
--- a/py-imreg-dft/Makefile
+++ b/py-imreg-dft/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	imreg_dft-1.0.2
 PKGNAME=	${PYPKGPREFIX}-imreg-dft-1.0.2
 CATEGORIES=	math graphics
-MASTER_SITES=	https://pypi.python.org/packages/source/i/imreg_dft/
+MASTER_SITES=	${MASTER_SITE_PYPI:=i/imreg_dft/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/matejak/imreg_dft
diff --git a/py-inflection/Makefile b/py-inflection/Makefile
index c6fbdac..4e70123 100644
--- a/py-inflection/Makefile
+++ b/py-inflection/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	inflection-0.3.1
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc
-MASTER_SITES=	https://pypi.python.org/packages/source/i/inflection/
+MASTER_SITES=	${MASTER_SITE_PYPI:=i/inflection/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/jpvanhal/inflection
diff --git a/py-inspyred/Makefile b/py-inspyred/Makefile
index 89997ae..13986d6 100644
--- a/py-inspyred/Makefile
+++ b/py-inspyred/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	inspyred-1.0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology
-MASTER_SITES=	https://pypi.python.org/packages/source/i/inspyred/
+MASTER_SITES=	${MASTER_SITE_PYPI:=i/inspyred/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	 https://aarongarrett.github.io/inspyred
diff --git a/py-ioflo/Makefile b/py-ioflo/Makefile
index 440d1a1..084b7c9 100644
--- a/py-ioflo/Makefile
+++ b/py-ioflo/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ioflo-1.3.8
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/i/ioflo/
+MASTER_SITES=	${MASTER_SITE_PYPI:=i/ioflo/}
 
 MAINTAINER=     jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/ioflo/ioflo
diff --git a/py-ionize/Makefile b/py-ionize/Makefile
index 13a735f..b8874de 100644
--- a/py-ionize/Makefile
+++ b/py-ionize/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ionize-0.10.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	cad
-MASTER_SITES=	https://pypi.python.org/packages/source/i/ionize/
+MASTER_SITES=	${MASTER_SITE_PYPI:=i/ionize/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://lewisamarshall.github.io/ionize/
diff --git a/py-iprogress/Makefile b/py-iprogress/Makefile
index e6a11b9..3b763db 100644
--- a/py-iprogress/Makefile
+++ b/py-iprogress/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	IProgress-0.2
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/I/IProgress/
+MASTER_SITES=	${MASTER_SITE_PYPI:=I/IProgress/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/I/IProgress/
+HOMEPAGE=	${MASTER_SITE_PYPI:=I/IProgress/}
 COMMENT=	Text progress bar library for Python
 LICENSE=	modified-bsd OR gnu-lgpl-v2.1
 
diff --git a/py-ipython-sql/Makefile b/py-ipython-sql/Makefile
index e1b6b0a..f76585b 100644
--- a/py-ipython-sql/Makefile
+++ b/py-ipython-sql/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ipython-sql-0.3.6
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	databases python
-MASTER_SITES=	https://pypi.python.org/packages/source/i/ipython-sql/
+MASTER_SITES=	${MASTER_SITE_PYPI:=i/ipython-sql/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://pypi.python.org/pypi/ipython-sql/
diff --git a/py-irco/Makefile b/py-irco/Makefile
index 40ff1cd..f3e0036 100644
--- a/py-irco/Makefile
+++ b/py-irco/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	irco-0.9.1
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/i/irco/
+MASTER_SITES=	${MASTER_SITE_PYPI:=i/irco/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/GaretJax/irco
diff --git a/py-jbessel/Makefile b/py-jbessel/Makefile
index 39d971b..a33c86e 100644
--- a/py-jbessel/Makefile
+++ b/py-jbessel/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	jBessel-0.1.4
 PKGNAME=		${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/j/jBessel/
+MASTER_SITES=	${MASTER_SITE_PYPI:=j/jBessel/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/daron1337/jBessel
diff --git a/py-jedi/Makefile b/py-jedi/Makefile
index 34d3a77..6040ace 100644
--- a/py-jedi/Makefile
+++ b/py-jedi/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	jedi-0.8.0-final0
 EGG_NAME=	jedi-0.8.0_final0
 PKGNAME=        ${PYPKGPREFIX}-${EGG_NAME}
 CATEGORIES=	editors python
-MASTER_SITES=	https://pypi.python.org/packages/source/j/jedi/
+MASTER_SITES=	${MASTER_SITE_PYPI:=j/jedi/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	 https://github.com/davidhalter/jedi
diff --git a/py-jelly/Makefile b/py-jelly/Makefile
index 1c28790..149aebb 100644
--- a/py-jelly/Makefile
+++ b/py-jelly/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	jelly-0.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/j/jelly/
+MASTER_SITES=	${MASTER_SITE_PYPI:=j/jelly/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://pypi.python.org/pypi/jelly
diff --git a/py-jewish/Makefile b/py-jewish/Makefile
index 4296d1d..c7d6b08 100644
--- a/py-jewish/Makefile
+++ b/py-jewish/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	jewish-0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	time python
-MASTER_SITES=	https://pypi.python.org/packages/source/j/jewish/
+MASTER_SITES=	${MASTER_SITE_PYPI:=j/jewish/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/emosenkis/jewish
diff --git a/py-jsonrequester/Makefile b/py-jsonrequester/Makefile
index e3cf43d..da8a92e 100644
--- a/py-jsonrequester/Makefile
+++ b/py-jsonrequester/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	jsonrequester-0.1.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www textproc
-MASTER_SITES=	http://pypi.python.org/packages/source/j/jsonrequester/
+MASTER_SITES=	${MASTER_SITE_PYPI:=j/jsonrequester/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/jsonrequester
diff --git a/py-jsonschema/Makefile b/py-jsonschema/Makefile
index fe13154..3081615 100644
--- a/py-jsonschema/Makefile
+++ b/py-jsonschema/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	jsonschema-2.3.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc
-MASTER_SITES=	https://pypi.python.org/packages/source/j/jsonschema/
+MASTER_SITES=	${MASTER_SITE_PYPI:=j/jsonschema/}
 EXTRACT_SUFX=	.zip#md5=0275f70c5f7c65657555ff478a4fc89c
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-kabuki/Makefile b/py-kabuki/Makefile
index f05db87..b45ff3c 100644
--- a/py-kabuki/Makefile
+++ b/py-kabuki/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	kabuki-0.5.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/k/kabuki/
+MASTER_SITES=	${MASTER_SITE_PYPI:=k/kabuki/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/hddm-devs/kabuki
diff --git a/py-khayyam/Makefile b/py-khayyam/Makefile
index 7e9c606..adcb0dd 100644
--- a/py-khayyam/Makefile
+++ b/py-khayyam/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	Khayyam-0.5rc2
 PKGNAME=	${PYPKGPREFIX}-khayyam-0.5rc2
 CATEGORIES=	time math
-MASTER_SITES=	http://pypi.python.org/packages/source/K/Khayyam/
+MASTER_SITES=	${MASTER_SITE_PYPI:=K/Khayyam/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://pylover.dobisel.com/projects/khayyam
diff --git a/py-kineticlib/Makefile b/py-kineticlib/Makefile
index df7ad83..855ce7c 100644
--- a/py-kineticlib/Makefile
+++ b/py-kineticlib/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	kineticlib-0.3.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/k/kineticlib/
+MASTER_SITES=	${MASTER_SITE_PYPI:=k/kineticlib/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/Kunstmord/kineticlib
diff --git a/py-kitchen/Makefile b/py-kitchen/Makefile
index 9eb5557..d4844a2 100644
--- a/py-kitchen/Makefile
+++ b/py-kitchen/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	kitchen-1.2.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/k/kitchen/
+MASTER_SITES=	${MASTER_SITE_PYPI:=k/kitchen/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://fedorahosted.org/kitchen
diff --git a/py-kivy/Makefile b/py-kivy/Makefile
index ef65f5d..09feaa3 100644
--- a/py-kivy/Makefile
+++ b/py-kivy/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	Kivy-1.0.9
 PKGNAME=   	${PYPKGPREFIX}-kivy-${VERSION}
 PKGREVISION=	2
 CATEGORIES=	devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/K/Kivy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=K/Kivy/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://kivy.org/#home
diff --git a/py-kiwisolver/Makefile b/py-kiwisolver/Makefile
index 6a3de1b..8d6ca23 100644
--- a/py-kiwisolver/Makefile
+++ b/py-kiwisolver/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	kiwisolver-0.1.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/k/kiwisolver/
+MASTER_SITES=	${MASTER_SITE_PYPI:=k/kiwisolver/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-krylov/Makefile b/py-krylov/Makefile
index 8b5ef32..26ed283 100644
--- a/py-krylov/Makefile
+++ b/py-krylov/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pykrylov-0.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pykrylov/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pykrylov/}
 
 MAINTAINER=     jihbed.research%gmail.com@localhost
 HOMEPAGE=       https://github.com/dpo/pykrylov/tree/master
diff --git a/py-krypy/Makefile b/py-krypy/Makefile
index e0d441f..4d94fbd 100644
--- a/py-krypy/Makefile
+++ b/py-krypy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	krypy-2.1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/k/krypy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=k/krypy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	 https://github.com/andrenarchy/krypy
diff --git a/py-larlib/Makefile b/py-larlib/Makefile
index 3ee5a0c..3fa0a7a 100644
--- a/py-larlib/Makefile
+++ b/py-larlib/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	larlib-0.1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/l/larlib/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/larlib/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/cvdlab/lar-cc
diff --git a/py-larry/Makefile b/py-larry/Makefile
index 8488819..fee73e3 100644
--- a/py-larry/Makefile
+++ b/py-larry/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	la-0.4.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/l/la/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/la/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://larry.sourceforge.net/
diff --git a/py-latexcodec/Makefile b/py-latexcodec/Makefile
index 4cc45b5..7c34dff 100644
--- a/py-latexcodec/Makefile
+++ b/py-latexcodec/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	latexcodec-0.3.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	print python
-MASTER_SITES=	https://pypi.python.org/packages/source/l/latexcodec/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/latexcodec/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-lazy-object-proxy/Makefile b/py-lazy-object-proxy/Makefile
index e87dfaf..57c7dc0 100644
--- a/py-lazy-object-proxy/Makefile
+++ b/py-lazy-object-proxy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	lazy-object-proxy-1.2.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devels
-MASTER_SITES=	https://pypi.python.org/packages/source/l/lazy-object-proxy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/lazy-object-proxy/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/ionelmc/python-lazy-object-proxy
diff --git a/py-lds/Makefile b/py-lds/Makefile
index b80bfdf..ce14876 100644
--- a/py-lds/Makefile
+++ b/py-lds/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pylds-0.0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pylds/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pylds/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/mattjj/pylds
diff --git a/py-lea/Makefile b/py-lea/Makefile
index c19f664..d888f3b 100644
--- a/py-lea/Makefile
+++ b/py-lea/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	lea-2.1.2
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=     math python
-MASTER_SITES=	https://pypi.python.org/packages/source/l/lea/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/lea/}
 
 MAINTAINER=     jihbed.research%gmail.com@localhost
 HOMEPAGE=       https://bitbucket.org/piedenis/lea
diff --git a/py-lib/Makefile b/py-lib/Makefile
index cebdfae..9293729 100644
--- a/py-lib/Makefile
+++ b/py-lib/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	py-1.0.2
 PKGNAME=	${PYPKGPREFIX}-lib-1.0.2
 PKGREVISION=	2
 CATEGORIES=	devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/py/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/py/}
 EXTRACT_SUFX=	.tar.gz#md5=d64444015bac78e0c73ac285f9423750
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-liblzma/Makefile b/py-liblzma/Makefile
index f15eea4..3f44083 100644
--- a/py-liblzma/Makefile
+++ b/py-liblzma/Makefile
@@ -3,11 +3,11 @@
 DISTNAME=	pyliblzma-0.5.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	archivers python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyliblzma/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyliblzma/}
 EXTRACT_SUFX=	.tar.bz2
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/p/pyliblzma/
+HOMEPAGE=	${MASTER_SITE_PYPI:=p/pyliblzma/}
 COMMENT=	Python bindings for liblzma
 LICENSE=	gnu-lgpl-v3
 
diff --git a/py-librabbitmq/Makefile b/py-librabbitmq/Makefile
index b8a63db..a952987 100644
--- a/py-librabbitmq/Makefile
+++ b/py-librabbitmq/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	librabbitmq-1.5.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	net python
-MASTER_SITES=	https://pypi.python.org/packages/source/l/librabbitmq/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/librabbitmq/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	http://github.com/celery/librabbitmq
diff --git a/py-libtextcat/Makefile b/py-libtextcat/Makefile
index aed6c1d..de57042 100644
--- a/py-libtextcat/Makefile
+++ b/py-libtextcat/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	pylibtextcat-0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 EGG_NAME=	${DISTNAME}
 CATEGORIES=	textproc
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pylibtextcat/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pylibtextcat/}
 EXTRACT_SUFX=	.tar.bz2
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-lifelines/Makefile b/py-lifelines/Makefile
index 1525438..cd91a40 100644
--- a/py-lifelines/Makefile
+++ b/py-lifelines/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	lifelines-0.2.2.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/l/lifelines/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/lifelines/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/l/lifelines/
+HOMEPAGE=	${MASTER_SITE_PYPI:=l/lifelines/}
 COMMENT=	Including Kaplan Meier, Nelson Aalen and regression
 LICENSE=	mit
 
diff --git a/py-linearalgebra/Makefile b/py-linearalgebra/Makefile
index 60a67f6..0701853 100644
--- a/py-linearalgebra/Makefile
+++ b/py-linearalgebra/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	LinearAlgebra-1.3.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/L/LinearAlgebra/
+MASTER_SITES=	${MASTER_SITE_PYPI:=L/LinearAlgebra/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://pypi.python.org/pypi/LinearAlgebra/
diff --git a/py-lingpy/Makefile b/py-lingpy/Makefile
index fdaafc8..317b577 100644
--- a/py-lingpy/Makefile
+++ b/py-lingpy/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	lingpy-2.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/l/lingpy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/lingpy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/l/lingpy/
+HOMEPAGE=	${MASTER_SITE_PYPI:=l/lingpy/}
 COMMENT=	Python library for automatic tasks in historical linguistics
 LICENSE=	gnu-gpl-v3
 
diff --git a/py-linop/Makefile b/py-linop/Makefile
index d699644..5dcc837 100644
--- a/py-linop/Makefile
+++ b/py-linop/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	linop-0.8.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/l/linop/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/linop/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/ghisvail/linop
diff --git a/py-lire/Makefile b/py-lire/Makefile
index 019ab13..4fa1cc8 100644
--- a/py-lire/Makefile
+++ b/py-lire/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pylire-0.3.8
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pylire/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pylire/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/fish2000/pylire/
diff --git a/py-liveplots/Makefile b/py-liveplots/Makefile
index cd81e79..5f23bac 100644
--- a/py-liveplots/Makefile
+++ b/py-liveplots/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	liveplots-0.7.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	graphics math python
-MASTER_SITES=	http://pypi.python.org/packages/source/l/liveplots/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/liveplots/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://code.google.com/p/liveplots/
diff --git a/py-llfuse/Makefile b/py-llfuse/Makefile
index 1cd9891..fd0b30a 100644
--- a/py-llfuse/Makefile
+++ b/py-llfuse/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	llfuse-0.41
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	filesystems
-MASTER_SITES=	https://pypi.python.org/packages/source/l/llfuse/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/llfuse/}
 EXTRACT_SUFX=	.tar.bz2
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
diff --git a/py-locustio/Makefile b/py-locustio/Makefile
index d9a02e0..fccb06e 100644
--- a/py-locustio/Makefile
+++ b/py-locustio/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	locustio-0.7.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel www
-MASTER_SITES=	https://pypi.python.org/packages/source/l/locustio/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/locustio/}
 
 MAINTAINER=	angel.medinamoscat%gmail.com@localhost
 HOMEPAGE=	https://pypi.python.org/pypi/locustio
diff --git a/py-logbook/Makefile b/py-logbook/Makefile
index 147be01..c4f514a 100644
--- a/py-logbook/Makefile
+++ b/py-logbook/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Logbook-0.10.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	sysutils python
-MASTER_SITES=	https://pypi.python.org/packages/source/L/Logbook/
+MASTER_SITES=	${MASTER_SITE_PYPI:=L/Logbook/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://logbook.pocoo.org/
diff --git a/py-loggly/Makefile b/py-loggly/Makefile
index a64dc79..8a675dd 100644
--- a/py-loggly/Makefile
+++ b/py-loggly/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	loggly-0.1.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	2
 CATEGORIES=	devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/l/loggly/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/loggly/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/EA2D/loggly-python
diff --git a/py-logilab-database/Makefile b/py-logilab-database/Makefile
index 15c079c..cd36d62 100644
--- a/py-logilab-database/Makefile
+++ b/py-logilab-database/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	logilab-database-1.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	databases
-MASTER_SITES=	http://pypi.python.org/packages/source/l/logilab-database/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/logilab-database/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://www.logilab.org/project/logilab-database
diff --git a/py-logtools/Makefile b/py-logtools/Makefile
index b75def4..4f3768d 100644
--- a/py-logtools/Makefile
+++ b/py-logtools/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	logtools-0.8.7
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	https://pypi.python.org/packages/source/l/logtools/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/logtools/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	https://github.com/adamhadani/logtools
diff --git a/py-louie/Makefile b/py-louie/Makefile
index 4f12424..16b960f 100644
--- a/py-louie/Makefile
+++ b/py-louie/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	Louie-1.1
 PKGNAME=	${PYPKGPREFIX}-louie-1.1
 CATEGORIES=	devel
-MASTER_SITES=	http://pypi.python.org/packages/source/L/Louie/
+MASTER_SITES=	${MASTER_SITE_PYPI:=L/Louie/}
 
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
diff --git a/py-lrparsing/Makefile b/py-lrparsing/Makefile
index c96eb81..d02f52d 100644
--- a/py-lrparsing/Makefile
+++ b/py-lrparsing/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	lrparsing-1.0.11
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	lang python
-MASTER_SITES=	https://pypi.python.org/packages/source/l/lrparsing/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/lrparsing/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://lrparsing.sourceforge.net/
diff --git a/py-lsqfit/Makefile b/py-lsqfit/Makefile
index 00f352f..607cca7 100644
--- a/py-lsqfit/Makefile
+++ b/py-lsqfit/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	lsqfit-4.8
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/l/lsqfit/
+MASTER_SITES=	${MASTER_SITE_PYPI:=l/lsqfit/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	  https://github.com/gplepage/lsqfit.git
diff --git a/py-luminous/Makefile b/py-luminous/Makefile
index 0a3e4c6..aff5cc9 100644
--- a/py-luminous/Makefile
+++ b/py-luminous/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pyLuminous-0.7
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyLuminous/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyLuminous/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-lzma/Makefile b/py-lzma/Makefile
index fc5e3d2..00314b1 100644
--- a/py-lzma/Makefile
+++ b/py-lzma/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pylzma-0.4.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	archivers python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pylzma/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pylzma/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://www.joachim-bauch.de/projects/pylzma/
diff --git a/py-m2ext/Makefile b/py-m2ext/Makefile
index 3528118..e2c697c 100644
--- a/py-m2ext/Makefile
+++ b/py-m2ext/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	m2ext-0.1
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	security python
-MASTER_SITES=	https://pypi.python.org/packages/source/m/m2ext/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/m2ext/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/abbot/m2ext
diff --git a/py-mahotas/Makefile b/py-mahotas/Makefile
index 5a5249d..f9333be 100644
--- a/py-mahotas/Makefile
+++ b/py-mahotas/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	mahotas-1.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	graphics python
-MASTER_SITES=	https://pypi.python.org/packages/source/m/mahotas/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mahotas/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://luispedro.org/software/mahotas
diff --git a/py-mando/Makefile b/py-mando/Makefile
index 2a0fcf4..8710355 100644
--- a/py-mando/Makefile
+++ b/py-mando/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	mando-0.3.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/m/mando/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mando/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://mando.readthedocs.org/
diff --git a/py-mark/Makefile b/py-mark/Makefile
index a423eda..55ff900 100644
--- a/py-mark/Makefile
+++ b/py-mark/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	mark-0.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/m/mark/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mark/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://packages.python.org/mark/
diff --git a/py-markovchain/Makefile b/py-markovchain/Makefile
index 136f9ce..704e341 100644
--- a/py-markovchain/Makefile
+++ b/py-markovchain/Makefile
@@ -3,11 +3,11 @@
 DISTNAME=	PyMarkovChain-1.7.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/Py//:tl}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/P/PyMarkovChain/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/PyMarkovChain/}
 
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/P/PyMarkovChain/
+HOMEPAGE=	${MASTER_SITE_PYPI:=P/PyMarkovChain/}
 COMMENT=	Simple markov chain implementation
 #LICENSE=	# TODO: (see mk/license.mk)
 
diff --git a/py-mathjspy/Makefile b/py-mathjspy/Makefile
index c214157..a4cdf69 100644
--- a/py-mathjspy/Makefile
+++ b/py-mathjspy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	mathjspy-0.0.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math textproc
-MASTER_SITES=	https://pypi.python.org/packages/source/m/mathjspy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mathjspy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://mathjspy.readthedocs.org/
diff --git a/py-matplottheme/Makefile b/py-matplottheme/Makefile
index cecbfa8..1c666bd 100644
--- a/py-matplottheme/Makefile
+++ b/py-matplottheme/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	MatPlotTheme-0.0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	graphics python
-MASTER_SITES=	https://pypi.python.org/packages/source/M/MatPlotTheme/
+MASTER_SITES=	${MASTER_SITE_PYPI:=M/MatPlotTheme/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/James-Yu/MatPlotTheme
diff --git a/py-mave/Makefile b/py-mave/Makefile
index aa7df6d..8bea6f0 100644
--- a/py-mave/Makefile
+++ b/py-mave/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	mave-0.0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/m/mave/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mave/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/m/mave/
+HOMEPAGE=	${MASTER_SITE_PYPI:=m/mave/}
 COMMENT=	Library for Measurement and Verification
 LICENSE=	gnu-gpl-v3
 
diff --git a/py-mcerp/Makefile b/py-mcerp/Makefile
index a2d6bc7..f289821 100644
--- a/py-mcerp/Makefile
+++ b/py-mcerp/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	mcerp-0.10.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/m/mcerp/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mcerp/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/tisimst/mcerp
diff --git a/py-mcint/Makefile b/py-mcint/Makefile
index 247611a..41a4ba4 100644
--- a/py-mcint/Makefile
+++ b/py-mcint/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	mcint-0.1dev5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/m/mcint/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mcint/}
 EXTRACT_SUFX=	.zip#md5=2f8d65a42f38e3640b61f074e280982a
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-mcview/Makefile b/py-mcview/Makefile
index 4e0705e..a9f4452 100644
--- a/py-mcview/Makefile
+++ b/py-mcview/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	mcview-0.4.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math graphics
-MASTER_SITES=	http://pypi.python.org/packages/source/m/mcview/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mcview/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi?%3Aaction=search&term=mcview&submit=search
diff --git a/py-meigo/Makefile b/py-meigo/Makefile
index ef26ff9..562ed2c 100644
--- a/py-meigo/Makefile
+++ b/py-meigo/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pymeigo-1.0.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pymeigo/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pymeigo/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.ebi.ac.uk/~cokelaer/pymeigo
diff --git a/py-mendeleev/Makefile b/py-mendeleev/Makefile
index 6308766..4adb203 100644
--- a/py-mendeleev/Makefile
+++ b/py-mendeleev/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	mendeleev-0.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology
-MASTER_SITES=	https://pypi.python.org/packages/source/m/mendeleev/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mendeleev/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://bitbucket.org/lukaszmentel/mendeleev
diff --git a/py-metropack/Makefile b/py-metropack/Makefile
index 4d26716..ab865c6 100644
--- a/py-metropack/Makefile
+++ b/py-metropack/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	metropack-0.1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/m/metropack/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/metropack/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/eddiejessup/metropack
diff --git a/py-minepy/Makefile b/py-minepy/Makefile
index 28107a7..36bc3d5 100644
--- a/py-minepy/Makefile
+++ b/py-minepy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	minepy-1.0.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/m/minepy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/minepy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	minepy.sourceforge.net
diff --git a/py-mipp/Makefile b/py-mipp/Makefile
index 4e772d5..aeca94c 100644
--- a/py-mipp/Makefile
+++ b/py-mipp/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	mipp-0.9
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/m/mipp/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mipp/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/loerum/mipp
diff --git a/py-mistune/Makefile b/py-mistune/Makefile
index 3180b08..1455440 100644
--- a/py-mistune/Makefile
+++ b/py-mistune/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	mistune-0.6
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc python
-MASTER_SITES=	https://pypi.python.org/packages/source/m/mistune/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mistune/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/lepture/mistune
diff --git a/py-mne/Makefile b/py-mne/Makefile
index 0430dec..fb26c8c 100644
--- a/py-mne/Makefile
+++ b/py-mne/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	mne-0.7.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology
-MASTER_SITES=	https://pypi.python.org/packages/source/m/mne/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mne/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://martinos.org/mne/stable/index.html
diff --git a/py-mochi/Makefile b/py-mochi/Makefile
index 8de3bfb..b9ce38b 100644
--- a/py-mochi/Makefile
+++ b/py-mochi/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	mochi-0.1.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	lang python
-MASTER_SITES=	https://pypi.python.org/packages/source/m/mochi/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mochi/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/i2y/mochi
diff --git a/py-modargs/Makefile b/py-modargs/Makefile
index a3461a7..4ea8ab8 100644
--- a/py-modargs/Makefile
+++ b/py-modargs/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	python-modargs-1.7
 PKGNAME=	${PYPKGPREFIX}-modargs-1.7
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/python-modargs/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/python-modargs/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/python-modargs
diff --git a/py-moksha-common/Makefile b/py-moksha-common/Makefile
index c535911..0d84b76 100644
--- a/py-moksha-common/Makefile
+++ b/py-moksha-common/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	moksha.common-1.2.3
 PKGNAME=	${PYPKGPREFIX}-moksha-common-1.2.3
 CATEGORIES=	www python
-MASTER_SITES=	https://pypi.python.org/packages/source/m/moksha.common/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/moksha.common/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://mokshaproject.net/
diff --git a/py-moksha-hub/Makefile b/py-moksha-hub/Makefile
index a4ee836..a666b05 100644
--- a/py-moksha-hub/Makefile
+++ b/py-moksha-hub/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	moksha.hub-1.4.4
  PKGNAME=	${PYPKGPREFIX}-moksha-hub-1.4.4
 CATEGORIES=	wip
-MASTER_SITES=	https://pypi.python.org/packages/source/m/moksha.hub/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/moksha.hub/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://moksha.fedorahosted.org
diff --git a/py-monad/Makefile b/py-monad/Makefile
index e0ac590..b5b7c4b 100644
--- a/py-monad/Makefile
+++ b/py-monad/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	PyMonad-1.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/Py//tl}
 CATEGORIES=	lang
-MASTER_SITES=	https://pypi.python.org/packages/source/P/PyMonad/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/PyMonad/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://bitbucket.org/jason_delaat/pymonad
diff --git a/py-monty/Makefile b/py-monty/Makefile
index 8041a32..82b71cb 100644
--- a/py-monty/Makefile
+++ b/py-monty/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	monty-0.7.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/m/monty/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/monty/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/materialsvirtuallab/monty
diff --git a/py-mox/Makefile b/py-mox/Makefile
index 3f3861f..6459696 100644
--- a/py-mox/Makefile
+++ b/py-mox/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	mox-0.5.3
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/m/mox/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mox/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://code.google.com/p/pymox/
diff --git a/py-moya/Makefile b/py-moya/Makefile
index 10c9438..066bd0e 100644
--- a/py-moya/Makefile
+++ b/py-moya/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	moya-0.5.20
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	https://pypi.python.org/packages/source/m/moya/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/moya/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://www.moyaproject.com
diff --git a/py-mplh5canvas/Makefile b/py-mplh5canvas/Makefile
index 254b12c..9862e50 100644
--- a/py-mplh5canvas/Makefile
+++ b/py-mplh5canvas/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	mplh5canvas-0.7
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	graphics python
-MASTER_SITES=	https://pypi.python.org/packages/source/m/mplh5canvas/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mplh5canvas/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://code.google.com/p/mplh5canvas/
diff --git a/py-mpop/Makefile b/py-mpop/Makefile
index e847a52..3f02ed2 100644
--- a/py-mpop/Makefile
+++ b/py-mpop/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	mpop-v1.0.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/-v/-/}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/m/mpop/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mpop/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/mraspaud/mpop
diff --git a/py-msdas/Makefile b/py-msdas/Makefile
index a2f42cc..62a522a 100644
--- a/py-msdas/Makefile
+++ b/py-msdas/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	msdas-0.0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/m/msdas/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/msdas/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pythonhosted.org/msdas/
diff --git a/py-mssql2/Makefile b/py-mssql2/Makefile
index 954c108..fd75ee1 100644
--- a/py-mssql2/Makefile
+++ b/py-mssql2/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=		pymssql-2.1.0
 PKGNAME=		${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=		databases python
-MASTER_SITES=		https://pypi.python.org/packages/source/p/pymssql/
+MASTER_SITES=		${MASTER_SITE_PYPI:=p/pymssql/}
 
 MAINTAINER=		bartosz.kuzma%gmail.com@localhost
 HOMEPAGE=		http://pymssql.org/
diff --git a/py-msumastro/Makefile b/py-msumastro/Makefile
index 70457e4..d62bf0c 100644
--- a/py-msumastro/Makefile
+++ b/py-msumastro/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	msumastro-0.8.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/m/msumastro/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/msumastro/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/mwcraig/msumastro
diff --git a/py-multichain_mcmc/Makefile b/py-multichain_mcmc/Makefile
index bdabb3a..5eeb7ab 100644
--- a/py-multichain_mcmc/Makefile
+++ b/py-multichain_mcmc/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	multichain_mcmc-0.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/m/multichain_mcmc/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/multichain_mcmc/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi.python.org/pypi/multichain_mcmc
diff --git a/py-multimethods/Makefile b/py-multimethods/Makefile
index ad7f66c..adea736 100644
--- a/py-multimethods/Makefile
+++ b/py-multimethods/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	multimethods-1.0.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	python
-MASTER_SITES=	https://pypi.python.org/packages/source/m/multimethods/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/multimethods/}
 
 MAINTAINER=	root%zta.lk@localhost
 HOMEPAGE=	https://github.com/weissjeffm/multimethods
diff --git a/py-mvpoly/Makefile b/py-mvpoly/Makefile
index 768c574..02295e5 100644
--- a/py-mvpoly/Makefile
+++ b/py-mvpoly/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	mvpoly-0.93.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/m/mvpoly/
+MASTER_SITES=	${MASTER_SITE_PYPI:=m/mvpoly/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://soliton.vm.bytemark.co.uk/pub/jjg/en/code/mvpoly.html
diff --git a/py-naftawayh/Makefile b/py-naftawayh/Makefile
index 7b26b85..7ef4e8e 100644
--- a/py-naftawayh/Makefile
+++ b/py-naftawayh/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	Naftawayh-0.1
 PKGNAME=	${PYPKGPREFIX}-naftawayh-0.1
 CATEGORIES=	textproc python #arabic
-MASTER_SITES=	http://pypi.python.org/packages/source/N/Naftawayh/
+MASTER_SITES=	${MASTER_SITE_PYPI:=N/Naftawayh/}
 EXTRACT_SUFX=	.zip#md5=30663df3626a2464e234131f674e7627
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-naima/Makefile b/py-naima/Makefile
index f13dd0b..adf78cc 100644
--- a/py-naima/Makefile
+++ b/py-naima/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	naima-0.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/n/naima/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/naima/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/zblz/naima
diff --git a/py-natsort/Makefile b/py-natsort/Makefile
index aa0e8da..77789ec 100644
--- a/py-natsort/Makefile
+++ b/py-natsort/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	natsort-3.5.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/n/natsort/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/natsort/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/SethMMorton/natsort
diff --git a/py-ncomb/Makefile b/py-ncomb/Makefile
index 982876e..af9b2b0 100644
--- a/py-ncomb/Makefile
+++ b/py-ncomb/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	pyncomb-1.0.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyncomb/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyncomb/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://pypi.python.org/pypi/pyncomb/
diff --git a/py-ncpol2sdpa/Makefile b/py-ncpol2sdpa/Makefile
index c20f68b..3685a9b 100644
--- a/py-ncpol2sdpa/Makefile
+++ b/py-ncpol2sdpa/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ncpol2sdpa-1.2.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/n/ncpol2sdpa/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/ncpol2sdpa/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://peterwittek.github.io/ncpol2sdpa/
diff --git a/py-neo/Makefile b/py-neo/Makefile
index 15f1de6..221d805 100644
--- a/py-neo/Makefile
+++ b/py-neo/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	neo-0.3.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology python
-MASTER_SITES=	http://pypi.python.org/packages/source/n/neo/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/neo/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://pythonhosted.org/neo/
diff --git a/py-netcdf4/Makefile b/py-netcdf4/Makefile
index 17934ab..8464b97 100644
--- a/py-netcdf4/Makefile
+++ b/py-netcdf4/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	netCDF4-1.1.8
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/n/netCDF4/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/netCDF4/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://code.google.com/p/netcdf4-python/
diff --git a/py-netflowvizu/Makefile b/py-netflowvizu/Makefile
index a450011..1a9e9ff 100644
--- a/py-netflowvizu/Makefile
+++ b/py-netflowvizu/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	NetFlowVizu-0.6
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	graphics python
-MASTER_SITES=	https://pypi.python.org/packages/source/N/NetFlowVizu/
+MASTER_SITES=	${MASTER_SITE_PYPI:=N/NetFlowVizu/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.smallbulb.net/netflowvizu
diff --git a/py-neupy/Makefile b/py-neupy/Makefile
index 9b6be0b..d3b1350 100644
--- a/py-neupy/Makefile
+++ b/py-neupy/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	neupy-0.1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/n/neupy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/neupy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/n/neupy/
+HOMEPAGE=	${MASTER_SITE_PYPI:=n/neupy/}
 COMMENT=	Artificial Neural Network library implemented in Python
 LICENSE=	mit
 
diff --git a/py-neurolab/Makefile b/py-neurolab/Makefile
index b8e31d5..3be75ef 100644
--- a/py-neurolab/Makefile
+++ b/py-neurolab/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	neurolab-0.2.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/n/neurolab/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/neurolab/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://code.google.com/p/neurolab
diff --git a/py-neuronpy/Makefile b/py-neuronpy/Makefile
index a606693..7f64e39 100644
--- a/py-neuronpy/Makefile
+++ b/py-neuronpy/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	neuronpy-0.1.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	misc python
-MASTER_SITES=	http://pypi.python.org/packages/source/n/neuronpy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/neuronpy/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-nexpy/Makefile b/py-nexpy/Makefile
index 862976f..401aead 100644
--- a/py-nexpy/Makefile
+++ b/py-nexpy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	NeXpy-0.4.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	graphics python
-MASTER_SITES=	https://pypi.python.org/packages/source/N/NeXpy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=N/NeXpy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://nexpy.github.io/nexpy/
diff --git a/py-ngf/Makefile b/py-ngf/Makefile
index d89a73f..19c5be5 100644
--- a/py-ngf/Makefile
+++ b/py-ngf/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	PyNFG-0.1.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/Py//tl}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/P/PyNFG/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/PyNFG/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/P/PyNFG/
+HOMEPAGE=	${MASTER_SITE_PYPI:=P/PyNFG/}
 COMMENT=	Python package for implementing and solving Network form games
 LICENSE=	gnu-agpl-v3
 
diff --git a/py-nibabel/Makefile b/py-nibabel/Makefile
index 5fa1eac..540500c 100644
--- a/py-nibabel/Makefile
+++ b/py-nibabel/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	nibabel-1.3.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology python
-MASTER_SITES=	https://pypi.python.org/packages/source/n/nibabel/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/nibabel/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://nipy.org/nibabel
diff --git a/py-nilearn/Makefile b/py-nilearn/Makefile
index cd2c75c..948e977 100644
--- a/py-nilearn/Makefile
+++ b/py-nilearn/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	nilearn-0.1.4.post1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology python
-MASTER_SITES=	https://pypi.python.org/packages/source/n/nilearn/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/nilearn/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://nilearn.github.io
diff --git a/py-nimfa/Makefile b/py-nimfa/Makefile
index d554716..9f86b33 100644
--- a/py-nimfa/Makefile
+++ b/py-nimfa/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	nimfa-1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/n/nimfa/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/nimfa/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://nimfa.biolab.si
diff --git a/py-nipy/Makefile b/py-nipy/Makefile
index 1b57838..f17b095 100644
--- a/py-nipy/Makefile
+++ b/py-nipy/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	nipy-0.3.0
 CATEGORIES=	biology
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
-MASTER_SITES=	https://pypi.python.org/packages/source/n/nipy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/nipy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/n/nipy/
+HOMEPAGE=	${MASTER_SITE_PYPI:=n/nipy/}
 COMMENT=	Python package for analysis of neuroimaging data
 LICENSE=	modified-bsd
 
diff --git a/py-nlib/Makefile b/py-nlib/Makefile
index 084ef85..8b68ead 100644
--- a/py-nlib/Makefile
+++ b/py-nlib/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	nlib-0.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/n/nlib/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/nlib/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/mdipierro/canvas
diff --git a/py-nodepy/Makefile b/py-nodepy/Makefile
index 8257708..4b9fb90 100644
--- a/py-nodepy/Makefile
+++ b/py-nodepy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	nodepy-0.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/n/nodepy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/nodepy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://numerics.kaust.edu.sa/nodepy/
diff --git a/py-nose-senario/Makefile b/py-nose-senario/Makefile
index 2876f53..08a2b9d 100644
--- a/py-nose-senario/Makefile
+++ b/py-nose-senario/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	nose_scenario-0.1.3.tar
 EGG_NAME=	${DISTNAME:S/.tar//}
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/.tar//}
 CATEGORIES=	devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/n/nose_scenario/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/nose_scenario/}
 EXTRACT_SUFX=	.gz
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
diff --git a/py-nptdms/Makefile b/py-nptdms/Makefile
index 6b1c307..19d3654 100644
--- a/py-nptdms/Makefile
+++ b/py-nptdms/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	npTDMS-0.6.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/n/npTDMS/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/npTDMS/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/adamreeve/npTDMS
diff --git a/py-nuitka/Makefile b/py-nuitka/Makefile
index 285ec2f..69482a6 100644
--- a/py-nuitka/Makefile
+++ b/py-nuitka/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Nuitka-0.5.13.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	lang python
-MASTER_SITES=	https://pypi.python.org/packages/source/N/Nuitka/
+MASTER_SITES=	${MASTER_SITE_PYPI:=N/Nuitka/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://nuitka.net
diff --git a/py-numberjack/Makefile b/py-numberjack/Makefile
index 9f893fa..491a2cd 100644
--- a/py-numberjack/Makefile
+++ b/py-numberjack/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Numberjack-1.1.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/N/Numberjack/
+MASTER_SITES=	${MASTER_SITE_PYPI:=N/Numberjack/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://numberjack.ucc.ie/
diff --git a/py-numdifftools/Makefile b/py-numdifftools/Makefile
index 359fbd0..05aaac5 100644
--- a/py-numdifftools/Makefile
+++ b/py-numdifftools/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Numdifftools-0.4.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/N/n/}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/N/Numdifftools/
+MASTER_SITES=	${MASTER_SITE_PYPI:=N/Numdifftools/}
 EXTRACT_SUFX=	.zip#md5=944981e22d56ff299f73124ea1e62edc
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-numericalunits/Makefile b/py-numericalunits/Makefile
index b3372d8..df2c8e3 100644
--- a/py-numericalunits/Makefile
+++ b/py-numericalunits/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	numericalunits-1.13
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/n/numericalunits/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/numericalunits/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/numericalunits
diff --git a/py-nupic/Makefile b/py-nupic/Makefile
index 6ff9f27..8e8c1df 100644
--- a/py-nupic/Makefile
+++ b/py-nupic/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	nupic-0.3.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/n/nupic/
+MASTER_SITES=	${MASTER_SITE_PYPI:=n/nupic/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/numenta/nupic
diff --git a/py-ocrodjvu/Makefile b/py-ocrodjvu/Makefile
index ce47703..6a064b0 100644
--- a/py-ocrodjvu/Makefile
+++ b/py-ocrodjvu/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ocrodjvu-0.7.17
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	graphics
-MASTER_SITES=	https://pypi.python.org/packages/source/o/ocrodjvu/
+MASTER_SITES=	${MASTER_SITE_PYPI:=o/ocrodjvu/}
 
 MAINTAINER=	slitvinov%gmail.com@localhost
 HOMEPAGE=	https://pypi.python.org/pypi/ocrodjvu/
diff --git a/py-oct2py/Makefile b/py-oct2py/Makefile
index 9100bf7..cafa09b 100644
--- a/py-oct2py/Makefile
+++ b/py-oct2py/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	oct2py-0.3.4
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/o/oct2py/
+MASTER_SITES=	${MASTER_SITE_PYPI:=o/oct2py/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/blink1073/oct2py
diff --git a/py-ode/Makefile b/py-ode/Makefile
index ec5f217..66669bc 100644
--- a/py-ode/Makefile
+++ b/py-ode/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	PyODE-1.2.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/Py//tl}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/P/PyODE/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/PyODE/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pyode.sourceforge.net/
diff --git a/py-odeint/Makefile b/py-odeint/Makefile
index a133b79..b6a3e23 100644
--- a/py-odeint/Makefile
+++ b/py-odeint/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pyodeint-0.4.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyodeint/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyodeint/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/bjodah/
diff --git a/py-odesys/Makefile b/py-odesys/Makefile
index 1f5ee94..5b2717d 100644
--- a/py-odesys/Makefile
+++ b/py-odesys/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pyodesys-0.1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyodesys/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyodesys/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	 https://github.com/bjodah/pyodesys
diff --git a/py-odeviz/Makefile b/py-odeviz/Makefile
index 24e8d0f..d6da97d 100644
--- a/py-odeviz/Makefile
+++ b/py-odeviz/Makefile
@@ -2,10 +2,10 @@
 
 DISTNAME=	odeViz-0.2
 CATEGORIES=	category
-MASTER_SITES=	https://pypi.python.org/packages/source/o/odeViz/
+MASTER_SITES=	${MASTER_SITE_PYPI:=o/odeViz/}
 
 MAINTAINER=	INSERT_YOUR_MAIL_ADDRESS_HERE
-HOMEPAGE=	https://pypi.python.org/packages/source/o/odeViz/
+HOMEPAGE=	${MASTER_SITE_PYPI:=o/odeViz/}
 COMMENT=	TODO: Short description of the package
 #LICENSE=	# TODO: (see mk/license.mk)
 
diff --git a/py-okpy/Makefile b/py-okpy/Makefile
index ee85840..23b6272 100644
--- a/py-okpy/Makefile
+++ b/py-okpy/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	okpy-v1.4.1
 EGG_NAME=	okpy-1.4.1
  PKGNAME=	${PYPKGPREFIX}-${EGG_NAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/o/okpy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=o/okpy/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/Cal-CS-61A-Staff/ok-client
diff --git a/py-ontopy/Makefile b/py-ontopy/Makefile
index b041c44..4a6ed2f 100644
--- a/py-ontopy/Makefile
+++ b/py-ontopy/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	ontopy-0.1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	http://pypi.python.org/packages/source/o/ontopy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=o/ontopy/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	http://github.com/afternoon/ontopy/
diff --git a/py-openopt/Makefile b/py-openopt/Makefile
index fc0c59a..64a5d81 100644
--- a/py-openopt/Makefile
+++ b/py-openopt/Makefile
@@ -5,7 +5,7 @@ PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	1
 CATEGORIES=	math python
 CATEGORIES=	wip
-MASTER_SITES=	https://pypi.python.org/packages/source/o/openopt/
+MASTER_SITES=	${MASTER_SITE_PYPI:=o/openopt/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://openopt.org/Welcome
diff --git a/py-opentmm/Makefile b/py-opentmm/Makefile
index 5bcbe2f..3e15747 100644
--- a/py-opentmm/Makefile
+++ b/py-opentmm/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	openTMM-0.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/o/openTMM/
+MASTER_SITES=	${MASTER_SITE_PYPI:=o/openTMM/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://mesoscopic.mines.edu/mediawiki/index.php/Free_Python_codes
diff --git a/py-ordered-set/Makefile b/py-ordered-set/Makefile
index 5e44083..dd7e049 100644
--- a/py-ordered-set/Makefile
+++ b/py-ordered-set/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ordered-set-1.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/o/ordered-set/
+MASTER_SITES=	${MASTER_SITE_PYPI:=o/ordered-set/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/LuminosoInsight/ordered-set
diff --git a/py-ordereddict/Makefile b/py-ordereddict/Makefile
index 5e50c25..dcb3ccd 100644
--- a/py-ordereddict/Makefile
+++ b/py-ordereddict/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ordereddict-1.1
  PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/o/ordereddict/
+MASTER_SITES=	${MASTER_SITE_PYPI:=o/ordereddict/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://pypi.python.org/pypi/ordereddict/
diff --git a/py-oset/Makefile b/py-oset/Makefile
index f8242e4..07fc017 100644
--- a/py-oset/Makefile
+++ b/py-oset/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	oset-0.1.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/o/oset/
+MASTER_SITES=	${MASTER_SITE_PYPI:=o/oset/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	https://gitorious.com/sleipnir/python-oset
diff --git a/py-otb/Makefile b/py-otb/Makefile
index 3e4b3c7..e913b05 100644
--- a/py-otb/Makefile
+++ b/py-otb/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	otb-0.2.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/o/otb/
+MASTER_SITES=	${MASTER_SITE_PYPI:=o/otb/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://bitbucket.org/forieux/otb/
diff --git a/py-owslib/Makefile b/py-owslib/Makefile
index cb94b30..2acf4b2 100644
--- a/py-owslib/Makefile
+++ b/py-owslib/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	OWSLib-0.8.6
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	www
-MASTER_SITES=	https://pypi.python.org/packages/source/O/OWSLib/
+MASTER_SITES=	${MASTER_SITE_PYPI:=O/OWSLib/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	 https://geopython.github.io/OWSLib
diff --git a/py-paegan/Makefile b/py-paegan/Makefile
index 6f60e12..ea9c6bd 100644
--- a/py-paegan/Makefile
+++ b/py-paegan/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	paegan-0.9.0
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/p/paegan/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/paegan/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/asascience-open/paegan
diff --git a/py-pafy/Makefile b/py-pafy/Makefile
index edbfd3d..c670ad0 100644
--- a/py-pafy/Makefile
+++ b/py-pafy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pafy-0.3.74
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	net python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pafy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pafy/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://np1.github.io/pafy/
diff --git a/py-papy/Makefile b/py-papy/Makefile
index 83c4dad..9866e20 100644
--- a/py-papy/Makefile
+++ b/py-papy/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	papy-1.0b1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	2
 CATEGORIES=	parallel python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/papy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/papy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://code.google.com/p/papy/
diff --git a/py-parakeet/Makefile b/py-parakeet/Makefile
index 1515830..41631ad 100644
--- a/py-parakeet/Makefile
+++ b/py-parakeet/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	parakeet-0.23.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/parakeet/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/parakeet/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/p/parakeet/
+HOMEPAGE=	${MASTER_SITE_PYPI:=p/parakeet/}
 COMMENT=	Runtime compiler for numerical Python
 LICENSE=	modified-bsd
 
diff --git a/py-param/Makefile b/py-param/Makefile
index 42b7c20..06a94c0 100644
--- a/py-param/Makefile
+++ b/py-param/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	param-1.3.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/param/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/param/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://ioam.github.com/param/
diff --git a/py-parameters/Makefile b/py-parameters/Makefile
index 9e7b8ab..2b6b82c 100644
--- a/py-parameters/Makefile
+++ b/py-parameters/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	parameters-0.2.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology
-MASTER_SITES=	https://pypi.python.org/packages/source/p/parameters/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/parameters/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://neuralensemble.org/parameters
diff --git a/py-paramunittest/Makefile b/py-paramunittest/Makefile
index 9d2e548..e1d6a02 100644
--- a/py-paramunittest/Makefile
+++ b/py-paramunittest/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ParamUnittest-0.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/P/ParamUnittest/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/ParamUnittest/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/rik0/ParamUnittest
diff --git a/py-path.py/Makefile b/py-path.py/Makefile
index 3a89ad7..566a4bf 100644
--- a/py-path.py/Makefile
+++ b/py-path.py/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	path.py-7.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/p/path.py/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/path.py/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
diff --git a/py-pathlib/Makefile b/py-pathlib/Makefile
index 767ce08..6cb0a66 100644
--- a/py-pathlib/Makefile
+++ b/py-pathlib/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pathlib-1.0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pathlib/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pathlib/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://pathlib.readthedocs.org/
diff --git a/py-patsy/Makefile b/py-patsy/Makefile
index fd76dcc..54e24ab 100644
--- a/py-patsy/Makefile
+++ b/py-patsy/Makefile
@@ -3,11 +3,11 @@
 DISTNAME=	patsy-0.3.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/patsy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/patsy/}
 EXTRACT_SUFX=	.zip#md5=7545518b413136ba8343dcebea07e5e2
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/p/patsy/
+HOMEPAGE=	${MASTER_SITE_PYPI:=p/patsy/}
 COMMENT=	Python package for describing statistical models
 LICENSE=	2-clause-bsd
 
diff --git a/py-pdef/Makefile b/py-pdef/Makefile
index 0005b7a..6b018c7 100644
--- a/py-pdef/Makefile
+++ b/py-pdef/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pdef-1.1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pdef/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pdef/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	https://github.com/pdef/pdef-python
diff --git a/py-pdfposter/Makefile b/py-pdfposter/Makefile
index e6f7f9b..941abfe 100644
--- a/py-pdfposter/Makefile
+++ b/py-pdfposter/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pdftools.pdfposter-0.6.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/pdftools.//}
 CATEGORIES=	print
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pdftools.pdfposter/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pdftools.pdfposter/}
 EXTRACT_SUFX=	.tar.bz2
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
diff --git a/py-peru/Makefile b/py-peru/Makefile
index fda0056..9df4ad6 100644
--- a/py-peru/Makefile
+++ b/py-peru/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	peru-0.2.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/peru/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/peru/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/buildinspace/peru
diff --git a/py-pet/Makefile b/py-pet/Makefile
index 8d67e51..645f6ac 100644
--- a/py-pet/Makefile
+++ b/py-pet/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pypet-0.1b.6
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pypet/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pypet/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/SmokinCaterpillar/pypet
diff --git a/py-pint/Makefile b/py-pint/Makefile
index 12dff6e..9243a54 100644
--- a/py-pint/Makefile
+++ b/py-pint/Makefile
@@ -3,11 +3,11 @@
 DISTNAME=	Pint-0.5.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/P/Pint/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/Pint/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/P/Pint/
+HOMEPAGE=	${MASTER_SITE_PYPI:=P/Pint/}
 COMMENT=	Physical quantities module
 LICENSE=	modified-bsd
 
diff --git a/py-piquant/Makefile b/py-piquant/Makefile
index a65da09..83a341b 100644
--- a/py-piquant/Makefile
+++ b/py-piquant/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	piquant-0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/p/piquant/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/piquant/}
 EXTRACT_SUFX=	.zip
 # XXX: all text file are DOS style.
 # XXX: if future version install binary file,
diff --git a/py-plete/Makefile b/py-plete/Makefile
index 108693f..807d44c 100644
--- a/py-plete/Makefile
+++ b/py-plete/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	pyplete-0.0.5
 PKGNAME=	${PYPKGPREFIX}-plete-0.0.5
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyplete/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyplete/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/p/pyplete/
+HOMEPAGE=	${MASTER_SITE_PYPI:=p/pyplete/}
 COMMENT=	Python,autocomplete,python autocomplete,python analizer
 LICENSE=	gnu-lgpl-v2.1
 
diff --git a/py-plex/Makefile b/py-plex/Makefile
index 5bc37f2..c0f299a 100644
--- a/py-plex/Makefile
+++ b/py-plex/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	plex-2.0.0dev
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/dev//}
 EGG_NAME=	${DISTNAME:S/dev/.dev0/}
 CATEGORIES=	devel
-MASTER_SITES=	http://pypi.python.org/packages/source/p/plex/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/plex/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://code.google.com/p/python-plex/
diff --git a/py-pmi/Makefile b/py-pmi/Makefile
index dd2e4a5..d802922 100644
--- a/py-pmi/Makefile
+++ b/py-pmi/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	pmi-1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	parallel
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pmi/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pmi/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://github.com/olenz/pmi/
diff --git a/py-postmarkup/Makefile b/py-postmarkup/Makefile
index 15c194d..75c5b78 100644
--- a/py-postmarkup/Makefile
+++ b/py-postmarkup/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	postmarkup-1.2.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	https://pypi.python.org/packages/source/p/postmarkup/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/postmarkup/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	 http://code.google.com/p/postmarkup/
diff --git a/py-pot/Makefile b/py-pot/Makefile
index 88ca4a0..62abe2d 100644
--- a/py-pot/Makefile
+++ b/py-pot/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pypot-1.5.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	comms
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pypot/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pypot/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/poppy-project/pypot
diff --git a/py-prayertime/Makefile b/py-prayertime/Makefile
index 6003a0f..ce03309 100644
--- a/py-prayertime/Makefile
+++ b/py-prayertime/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	prayertime-2.2
 PKGNAME=	${PYPKGPREFIX}-m${DISTNAME}
 CATEGORIES=	time python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/prayertime/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/prayertime/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://bitbucket.org/xmonader/pyprayertime/
diff --git a/py-premailer/Makefile b/py-premailer/Makefile
index 896a68f..be6bb47 100644
--- a/py-premailer/Makefile
+++ b/py-premailer/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	python-premailer-0.5.7
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/python-//}
 CATEGORIES=	www
-MASTER_SITES=	https://pypi.python.org/packages/source/p/python-premailer/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/python-premailer/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/ralphbean/python-premailer
diff --git a/py-prioritized-methods/Makefile b/py-prioritized-methods/Makefile
index 5f028a3..8696f16 100644
--- a/py-prioritized-methods/Makefile
+++ b/py-prioritized-methods/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	prioritized_methods-0.2.1.tar
 EGG_NAME=	${DISTNAME:S/.tar//}
 PKGNAME=	${PYPKGPREFIX}-prioritized-methods-0.2.1
 CATEGORIES=	devel
-MASTER_SITES=	http://pypi.python.org/packages/source/p/prioritized_methods/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/prioritized_methods/}
 EXTRACT_SUFX=	.gz
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-processing/Makefile b/py-processing/Makefile
index 47da130..30cfca8 100644
--- a/py-processing/Makefile
+++ b/py-processing/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	processing-0.52
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	2
 CATEGORIES=	parallel python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/processing/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/processing/}
 EXTRACT_SUFX=	.zip#md5=62772fa3002d003b2395ed669072d51d
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
diff --git a/py-prody/Makefile b/py-prody/Makefile
index e823f6a..24aed0a 100644
--- a/py-prody/Makefile
+++ b/py-prody/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ProDy-1.4.10
 PKGNAME=	${PYPKGPREFIX}-prody-1.4.10
 CATEGORIES=	biology
-MASTER_SITES=	https://pypi.python.org/packages/source/P/ProDy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/ProDy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.csb.pitt.edu/ProDy
diff --git a/py-psamm/Makefile b/py-psamm/Makefile
index 277bb92..07fb486 100644
--- a/py-psamm/Makefile
+++ b/py-psamm/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	psamm-0.18
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/p/psamm/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/psamm/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/zhanglab/psamm
diff --git a/py-pseudopy/Makefile b/py-pseudopy/Makefile
index 28fb9e9..d3f177a 100644
--- a/py-pseudopy/Makefile
+++ b/py-pseudopy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pseudopy-1.2.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pseudopy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pseudopy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/andrenarchy/pseudopy
diff --git a/py-ptrace/Makefile b/py-ptrace/Makefile
index 7eb7148..a018553 100644
--- a/py-ptrace/Makefile
+++ b/py-ptrace/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	python-ptrace-0.6.4
 PKGNAME=	${PYPKGPREFIX}${DISTNAME:S/python//}
 PKGREVISION=	3
 CATEGORIES=	sysutils python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/python-ptrace/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/python-ptrace/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	https://bitbucket.org/haypo/python-ptrace/wiki/Home
diff --git a/py-pulsar/Makefile b/py-pulsar/Makefile
index 68dbf67..b95be4f 100644
--- a/py-pulsar/Makefile
+++ b/py-pulsar/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	pulsar-1.0.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pulsar/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pulsar/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/p/pulsar/
+HOMEPAGE=	${MASTER_SITE_PYPI:=p/pulsar/}
 COMMENT=	Event driven concurrent framework for Python
 LICENSE=	2-clause-bsd
 
diff --git a/py-pweave/Makefile b/py-pweave/Makefile
index 2e8ae76..34c90f7 100644
--- a/py-pweave/Makefile
+++ b/py-pweave/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	Pweave-0.20.1
 PKGNAME=	${PYPKGPREFIX}-pweave-0.20.1
 CATEGORIES=	textproc python
-MASTER_SITES=	http://pypi.python.org/packages/source/P/Pweave/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/Pweave/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://mpastell.com/pweave
diff --git a/py-pyamf/Makefile b/py-pyamf/Makefile
index 4a4f827..047f5d8 100644
--- a/py-pyamf/Makefile
+++ b/py-pyamf/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	PyAMF-0.5.1
 PKGNAME=	${PYPKGPREFIX}-pyamf-0.5.1
 CATEGORIES=	www
-MASTER_SITES=	http://pypi.python.org/packages/source/P/PyAMF/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/PyAMF/}
 EXTRACT_SUFX=	.tar.bz2
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-pydy-viz/Makefile b/py-pydy-viz/Makefile
index bae8d35..43fc314 100644
--- a/py-pydy-viz/Makefile
+++ b/py-pydy-viz/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pydy-viz-0.1.0
  PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	graphics
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pydy-viz/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pydy-viz/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/pydy/pydy-viz/
diff --git a/py-pydy/Makefile b/py-pydy/Makefile
index bfbbb46..ae48b77 100644
--- a/py-pydy/Makefile
+++ b/py-pydy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pydy-0.3.0
  PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pydy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pydy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pydy.org
diff --git a/py-pyec/Makefile b/py-pyec/Makefile
index 09fc746..0e287f4 100644
--- a/py-pyec/Makefile
+++ b/py-pyec/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	PyEC-0.2.5
 PKGNAME=	${PYPKGPREFIX}-pyec-0.2.5
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/P/PyEC/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/PyEC/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://nn.cs.utexas.edu/?pyec
diff --git a/py-pygit2/Makefile b/py-pygit2/Makefile
index dec2f47..9424940 100644
--- a/py-pygit2/Makefile
+++ b/py-pygit2/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pygit2-0.21.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pygit2/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pygit2/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	https://github.com/libgit2/pygit2
diff --git a/py-pykit-sci/Makefile b/py-pykit-sci/Makefile
index 3216091..a9ada75 100644
--- a/py-pykit-sci/Makefile
+++ b/py-pykit-sci/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pykit-sci-0.1.8
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pykit-sci/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pykit-sci/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/androomerrill/pykit-sci
diff --git a/py-pylons/Makefile b/py-pylons/Makefile
index bf782d2..fd14de7 100644
--- a/py-pylons/Makefile
+++ b/py-pylons/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Pylons-1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/P/p/}
 CATEGORIES=	www
-MASTER_SITES=	http://pypi.python.org/packages/source/P/Pylons/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/Pylons/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://pylonshq.com/
diff --git a/py-pymbolic/Makefile b/py-pymbolic/Makefile
index 92a4069..a157570 100644
--- a/py-pymbolic/Makefile
+++ b/py-pymbolic/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pymbolic-2013.3.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pymbolic/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pymbolic/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://mathema.tician.de/software/pymbolic
diff --git a/py-pymc/Makefile b/py-pymc/Makefile
index f16a88d..cd74b15 100644
--- a/py-pymc/Makefile
+++ b/py-pymc/Makefile
@@ -3,7 +3,7 @@
 
 DISTNAME=	pymc-2.1beta
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pymc/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pymc/}
 EXTRACT_SUFX=	.zip#md5=265be6fe114f2d52359d59f2c8b912ff
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-pynn/Makefile b/py-pynn/Makefile
index 6005a71..7e2d8cd 100644
--- a/py-pynn/Makefile
+++ b/py-pynn/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	PyNN-0.7.5
 PKGNAME=	${PYPKGPREFIX}-pynn-0.7.5
 CATEGORIES=	biology
-MASTER_SITES=	https://pypi.python.org/packages/source/P/PyNN/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/PyNN/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://neuralensemble.org/trac/PyNN/wiki
diff --git a/py-pyon/Makefile b/py-pyon/Makefile
index 923e25a..b17b27d 100644
--- a/py-pyon/Makefile
+++ b/py-pyon/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	pyon-0.0.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyon/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyon/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/p/pyon/
+HOMEPAGE=	${MASTER_SITE_PYPI:=p/pyon/}
 COMMENT=	Lattice QCD library including statistical, fitting, plotting functions
 #LICENSE=	# TODO: (see mk/license.mk)
 
diff --git a/py-pyphant/Makefile b/py-pyphant/Makefile
index f953bb7..44e4f15 100644
--- a/py-pyphant/Makefile
+++ b/py-pyphant/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pyphant-1.0b1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	graphics python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyphant/ \
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyphant/ \}
 		http://garr.dl.sourceforge.net/project/pyphant/Pyphant-1.0/
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-pypi-cli/Makefile b/py-pypi-cli/Makefile
index e001fe5..b808e26 100644
--- a/py-pypi-cli/Makefile
+++ b/py-pypi-cli/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pypi-cli-0.4.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pypi-cli/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pypi-cli/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/sloria/pypi-cli
diff --git a/py-pyrr/Makefile b/py-pyrr/Makefile
index 1bbcb6b..455df16 100644
--- a/py-pyrr/Makefile
+++ b/py-pyrr/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pyrr-0.2.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyrr/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyrr/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/adamlwgriffiths/Pyrr
diff --git a/py-pysal/Makefile b/py-pysal/Makefile
index e6e19df..06b8120 100644
--- a/py-pysal/Makefile
+++ b/py-pysal/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	PySAL-1.7.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/Py/py/tl}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/P/PySAL/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/PySAL/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pysal.org
diff --git a/py-pysb/Makefile b/py-pysb/Makefile
index 9888bc5..fc8cb37 100644
--- a/py-pysb/Makefile
+++ b/py-pysb/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pysb-0.1.11
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pysb/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pysb/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pysb.org/
diff --git a/py-pyslha/Makefile b/py-pyslha/Makefile
index d020df4..bff9047 100644
--- a/py-pyslha/Makefile
+++ b/py-pyslha/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	pyslha-1.2.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	1
 CATEGORIES=	misc
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyslha/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyslha/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.insectnation.org/projects/pyslha
diff --git a/py-pysph/Makefile b/py-pysph/Makefile
index 2f054e7..8e1eebb 100644
--- a/py-pysph/Makefile
+++ b/py-pysph/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	PySPH-0.9beta
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	misc python
-MASTER_SITES=	http://pypi.python.org/packages/source/P/PySPH/
+MASTER_SITES=	${MASTER_SITE_PYPI:=P/PySPH/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pysph.googlecode.com/
diff --git a/py-pyswisseph/Makefile b/py-pyswisseph/Makefile
index 34934c1..354e055 100644
--- a/py-pyswisseph/Makefile
+++ b/py-pyswisseph/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	pyswisseph-2.00.00-2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/-0/.0/1}
 CATEGORIES=	time
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyswisseph/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyswisseph/}
 EXTRACT_SUFX=	.tar.bz2
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
diff --git a/py-python-application/Makefile b/py-python-application/Makefile
index fd2e801..99ac76a 100644
--- a/py-python-application/Makefile
+++ b/py-python-application/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	python-application-1.5.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	http://pypi.python.org/packages/source/p/python-application/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/python-application/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	http://ag-projects.com/
diff --git a/py-python-gnutls/Makefile b/py-python-gnutls/Makefile
index 034da7a..7e1930a 100644
--- a/py-python-gnutls/Makefile
+++ b/py-python-gnutls/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	python-gnutls-2.0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	security
-MASTER_SITES=	https://pypi.python.org/packages/source/p/python-gnutls/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/python-gnutls/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	http://ag-projects.com/
diff --git a/py-pytkgen/Makefile b/py-pytkgen/Makefile
index 8d1e4c1..e34a352 100644
--- a/py-pytkgen/Makefile
+++ b/py-pytkgen/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pytkgen-1.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	x11 devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pytkgen/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pytkgen/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	https://github.com/tmetsch/pytkgen
diff --git a/py-pytools/Makefile b/py-pytools/Makefile
index c752be3..8402469 100644
--- a/py-pytools/Makefile
+++ b/py-pytools/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pytools-2014.3.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pytools/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pytools/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/pytools
diff --git a/py-pyvib2/Makefile b/py-pyvib2/Makefile
index 90feee5..71730aa 100644
--- a/py-pyvib2/Makefile
+++ b/py-pyvib2/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	pyvib2-1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	1
 CATEGORIES=	biology python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyvib2/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyvib2/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pyvib2.sourceforge.net/
diff --git a/py-qalsadi/Makefile b/py-qalsadi/Makefile
index 8bb80af..214485d 100644
--- a/py-qalsadi/Makefile
+++ b/py-qalsadi/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	qalsadi-0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc
-MASTER_SITES=	https://pypi.python.org/packages/source/q/qalsadi/
+MASTER_SITES=	${MASTER_SITE_PYPI:=q/qalsadi/}
 EXTRACT_SUFX=	.zip#md5=421352dba6a25888b7ba3d8f5052488e
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-qeutil/Makefile b/py-qeutil/Makefile
index 4b9f727..a044eec 100644
--- a/py-qeutil/Makefile
+++ b/py-qeutil/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	qeutil-0.1.7
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/q/qeutil/
+MASTER_SITES=	${MASTER_SITE_PYPI:=q/qeutil/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/jochym/qe-util
diff --git a/py-qit/Makefile b/py-qit/Makefile
index 2643030..3184062 100644
--- a/py-qit/Makefile
+++ b/py-qit/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	qit-0.9.12
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	http://pypi.python.org/packages/source/q/qit/
+MASTER_SITES=	${MASTER_SITE_PYPI:=q/qit/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://qit.sourceforge.net/
diff --git a/py-qmath/Makefile b/py-qmath/Makefile
index 9562061..e4d3dbb 100644
--- a/py-qmath/Makefile
+++ b/py-qmath/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	qmath-0.3.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/q/qmath/
+MASTER_SITES=	${MASTER_SITE_PYPI:=q/qmath/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/qmath
diff --git a/py-qnet/Makefile b/py-qnet/Makefile
index 153e72b..fbf6b71 100644
--- a/py-qnet/Makefile
+++ b/py-qnet/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	QNET-1.1.9
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/Q/QNET/
+MASTER_SITES=	${MASTER_SITE_PYPI:=Q/QNET/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/mabuchilab/QNET
diff --git a/py-quantities/Makefile b/py-quantities/Makefile
index d8af0b9..de1c598 100644
--- a/py-quantities/Makefile
+++ b/py-quantities/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	quantities-0.10.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/q/quantities/
+MASTER_SITES=	${MASTER_SITE_PYPI:=q/quantities/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-quaternionarray/Makefile b/py-quaternionarray/Makefile
index ee037a7..0433a77 100644
--- a/py-quaternionarray/Makefile
+++ b/py-quaternionarray/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	quaternionarray-0.6.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/q/quaternionarray/
+MASTER_SITES=	${MASTER_SITE_PYPI:=q/quaternionarray/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://andreazonca.com/software/quaternion-array/
diff --git a/py-quepy/Makefile b/py-quepy/Makefile
index 79dfd63..1ebbb23 100644
--- a/py-quepy/Makefile
+++ b/py-quepy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	quepy-0.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc python
-MASTER_SITES=	https://pypi.python.org/packages/source/q/quepy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=q/quepy/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	https://github.com/machinalis/quepy
diff --git a/py-radon/Makefile b/py-radon/Makefile
index e3b8780..54ea13a 100644
--- a/py-radon/Makefile
+++ b/py-radon/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	radon-1.2.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/r/radon/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/radon/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://radon.readthedocs.org/
diff --git a/py-radontea/Makefile b/py-radontea/Makefile
index f9f84fd..91ef0a0 100644
--- a/py-radontea/Makefile
+++ b/py-radontea/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	radontea-0.1.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/r/radontea/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/radontea/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/paulmueller/radontea
diff --git a/py-raphrase/Makefile b/py-raphrase/Makefile
index e4084cd..a0c0ead 100644
--- a/py-raphrase/Makefile
+++ b/py-raphrase/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	pyraphrase-0.1
 PKGNAME=        ${PYPKGPREFIX}-raphrase-0.1
 CATEGORIES=	textproc
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyraphrase/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyraphrase/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://unoyunodiez.wordpress.com/pyraphrase/
diff --git a/py-rasterio/Makefile b/py-rasterio/Makefile
index 80fe794..4fd6566 100644
--- a/py-rasterio/Makefile
+++ b/py-rasterio/Makefile
@@ -4,10 +4,10 @@ DISTNAME=	rasterio-0.5.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	1
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/r/rasterio/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/rasterio/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/r/rasterio/
+HOMEPAGE=	${MASTER_SITE_PYPI:=r/rasterio/}
 COMMENT=	Fast and direct raster I/O for Python programmers who use Numpy
 LICENSE=	modified-bsd
 
diff --git a/py-raven/Makefile b/py-raven/Makefile
index 58e8542..4cf1746 100644
--- a/py-raven/Makefile
+++ b/py-raven/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	raven-4.2.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www python
-MASTER_SITES=	https://pypi.python.org/packages/source/r/raven/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/raven/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/getsentry/raven-python
diff --git a/py-rdf/Makefile b/py-rdf/Makefile
index 03d0df7..f853cd4 100644
--- a/py-rdf/Makefile
+++ b/py-rdf/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	rdf-0.9a6
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www python
-MASTER_SITES=	http://pypi.python.org/packages/source/r/rdf/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/rdf/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://rdflib.net/
diff --git a/py-rdflib-django/Makefile b/py-rdflib-django/Makefile
index 126a490..56087ff 100644
--- a/py-rdflib-django/Makefile
+++ b/py-rdflib-django/Makefile
@@ -5,10 +5,10 @@ EGG_NAME=	rdflib_django-0.2.dev201210061248
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	1
 CATEGORIES=	www
-MASTER_SITES=	http://pypi.python.org/packages/source/r/rdflib-django/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/rdflib-django/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	http://pypi.python.org/packages/source/r/rdflib-django/
+HOMEPAGE=	${MASTER_SITE_PYPI:=r/rdflib-django/}
 COMMENT=	Store implementation for RDFlib using Django models as its backend
 LICENSE=	mit
 
diff --git a/py-rdopkg/Makefile b/py-rdopkg/Makefile
index 5dccb31..2e11515 100644
--- a/py-rdopkg/Makefile
+++ b/py-rdopkg/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	rdopkg-0.29
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	sysutils
-MASTER_SITES=	https://pypi.python.org/packages/source/r/rdopkg/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/rdopkg/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/redhat-openstack/rdopkg
diff --git a/py-rdoupdate/Makefile b/py-rdoupdate/Makefile
index aa9f11a..e07d4fe 100644
--- a/py-rdoupdate/Makefile
+++ b/py-rdoupdate/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	rdoupdate-0.13.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	sysutils python
-MASTER_SITES=	https://pypi.python.org/packages/source/r/rdoupdate/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/rdoupdate/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/yac/rdoupdate
diff --git a/py-rebound/Makefile b/py-rebound/Makefile
index e750343..e74919f6 100644
--- a/py-rebound/Makefile
+++ b/py-rebound/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	rebound-2.3.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/r/rebound/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/rebound/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/hannorein/rebound
diff --git a/py-recluse/Makefile b/py-recluse/Makefile
index a4c733e..8f78af3 100644
--- a/py-recluse/Makefile
+++ b/py-recluse/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	recluse-0.3.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/r/recluse/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/recluse/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/lamber/recluse
diff --git a/py-redbaron/Makefile b/py-redbaron/Makefile
index 0aadfe0..bd482b0 100644
--- a/py-redbaron/Makefile
+++ b/py-redbaron/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	redbaron-0.5.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/r/redbaron/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/redbaron/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/r/redbaron/
+HOMEPAGE=	${MASTER_SITE_PYPI:=r/redbaron/}
 COMMENT=	FST for python to make writing refactoring code a realistic task
 LICENSE=	gnu-lgpl-v3
 
diff --git a/py-reducer/Makefile b/py-reducer/Makefile
index 34cfedc..9786f9d 100644
--- a/py-reducer/Makefile
+++ b/py-reducer/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	reducer-0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/r/reducer/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/reducer/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/mwcraig/reducer
diff --git a/py-regex/Makefile b/py-regex/Makefile
index 9c17ba8..2630fb9 100644
--- a/py-regex/Makefile
+++ b/py-regex/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	regex-2015.10.01
 PKGNAME=	${PYPKGPREFIX}-regex-20151001
 CATEGORIES=	textproc
-MASTER_SITES=	https://pypi.python.org/packages/source/r/regex/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/regex/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://bitbucket.org/mrabarnett/mrab-regex
diff --git a/py-report/Makefile b/py-report/Makefile
index 5e598cf..8409eb2 100644
--- a/py-report/Makefile
+++ b/py-report/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pyreport-0.3.4c
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	devel
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyreport/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyreport/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://gael-varoquaux.info/computers/pyreport/
diff --git a/py-repoze.tm2/Makefile b/py-repoze.tm2/Makefile
index e1912d7..b0d7645 100644
--- a/py-repoze.tm2/Makefile
+++ b/py-repoze.tm2/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	repoze.tm2-1.0a5.tar
 EGG_NAME=	${DISTNAME:S/.tar//}
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/.tar//}
 CATEGORIES=	www
-MASTER_SITES=	http://pypi.python.org/packages/source/r/repoze.tm2/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/repoze.tm2/}
 EXTRACT_SUFX=	.gz
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-restkit/Makefile b/py-restkit/Makefile
index e88718c..75556cb 100644
--- a/py-restkit/Makefile
+++ b/py-restkit/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	restkit-4.2.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	python www
-MASTER_SITES=	https://pypi.python.org/packages/source/r/restkit/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/restkit/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/benoitc/restkit/
diff --git a/py-rf/Makefile b/py-rf/Makefile
index 8dbf171..c9df726 100644
--- a/py-rf/Makefile
+++ b/py-rf/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	rf-0.1.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/r/rf/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/rf/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/r/rf/
+HOMEPAGE=	${MASTER_SITE_PYPI:=r/rf/}
 COMMENT=	Receiver function calculation in seismology
 LICENSE=	mit
 
diff --git a/py-rogues/Makefile b/py-rogues/Makefile
index c566669..c02df68 100644
--- a/py-rogues/Makefile
+++ b/py-rogues/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	rogues-0.3.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/r/rogues/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/rogues/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/rogues
diff --git a/py-ropemode/Makefile b/py-ropemode/Makefile
index b954ec2..db8d4ec 100644
--- a/py-ropemode/Makefile
+++ b/py-ropemode/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	ropemode-0.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/r/ropemode/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/ropemode/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://rope.sf.net/
diff --git a/py-rpaths/Makefile b/py-rpaths/Makefile
index fe94477..4e5db83 100644
--- a/py-rpaths/Makefile
+++ b/py-rpaths/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	rpaths-0.8
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/r/rpaths/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/rpaths/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/remram44/rpaths
diff --git a/py-rql/Makefile b/py-rql/Makefile
index 5728ca3..bd9889a 100644
--- a/py-rql/Makefile
+++ b/py-rql/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	rql-0.33.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	https://pypi.python.org/packages/source/r/rql/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/rql/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://www.logilab.org/project/rql
diff --git a/py-rsistent/Makefile b/py-rsistent/Makefile
index 8ce03c1..775d022 100644
--- a/py-rsistent/Makefile
+++ b/py-rsistent/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pyrsistent-0.7.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyrsistent/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyrsistent/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/tobgu/pyrsistent/
diff --git a/py-ruffus/Makefile b/py-ruffus/Makefile
index 1f1d263..9815d14 100644
--- a/py-ruffus/Makefile
+++ b/py-ruffus/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	ruffus-2.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/r/ruffus/
+MASTER_SITES=	${MASTER_SITE_PYPI:=r/ruffus/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-sas7bdat/Makefile b/py-sas7bdat/Makefile
index 00d09e4..4843e82 100644
--- a/py-sas7bdat/Makefile
+++ b/py-sas7bdat/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	sas7bdat-2.0.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/s/sas7bdat/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/sas7bdat/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	 https://bitbucket.org/jaredhobbs/sas7bdat
diff --git a/py-sasa/Makefile b/py-sasa/Makefile
index e75e8e6..94ab72a 100644
--- a/py-sasa/Makefile
+++ b/py-sasa/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	sasa-0.1.3
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	misc
-MASTER_SITES=	https://pypi.python.org/packages/source/s/sasa/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/sasa/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://code.google.com/p/sasa-tool/
diff --git a/py-scikit-aero/Makefile b/py-scikit-aero/Makefile
index 8dd43ee..b586323 100644
--- a/py-scikit-aero/Makefile
+++ b/py-scikit-aero/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	scikit-aero-v0.1.0
 PKGNAME=		${PYPKGPREFIX}-${DISTNAME:S/v//}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/s/scikit-aero/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scikit-aero/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/Pybonacci/scikit-aero
diff --git a/py-scikit-image/Makefile b/py-scikit-image/Makefile
index 258536a..e753768 100644
--- a/py-scikit-image/Makefile
+++ b/py-scikit-image/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	scikit-image-0.11.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	graphics python
-MASTER_SITES=	https://pypi.python.org/packages/source/s/scikit-image/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scikit-image/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://scikit-image.org
diff --git a/py-scikit-learn/Makefile b/py-scikit-learn/Makefile
index 785232b..cfa35a2 100644
--- a/py-scikit-learn/Makefile
+++ b/py-scikit-learn/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	scikit-learn-0.17b1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/s/scikit-learn/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scikit-learn/}
 
 MAINTAINER=	filip%joyent.com@localhost
 HOMEPAGE=	http://scikit-learn.org/
diff --git a/py-scikit-monaco/Makefile b/py-scikit-monaco/Makefile
index 802adba..191dcb0 100644
--- a/py-scikit-monaco/Makefile
+++ b/py-scikit-monaco/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	scikit-monaco-0.1.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/s/scikit-monaco/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scikit-monaco/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://pypi.python.org/pypi/scikit-monaco
diff --git a/py-scikit-nano/Makefile b/py-scikit-nano/Makefile
index 3228bdd..81744d0 100644
--- a/py-scikit-nano/Makefile
+++ b/py-scikit-nano/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	scikit-nano-0.2.25
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/s/scikit-nano/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scikit-nano/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/androomerrill/scikit-nano
diff --git a/py-scikits-bvp_solver/Makefile b/py-scikits-bvp_solver/Makefile
index 7e85ef7..4179c2c 100644
--- a/py-scikits-bvp_solver/Makefile
+++ b/py-scikits-bvp_solver/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	scikits.bvp_solver-0.3.0
 PKGNAME=	${PYPKGPREFIX}-scikits-bvp_solver-0.3.0
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/s/scikits.bvp_solver/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scikits.bvp_solver/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://packages.python.org/scikits.bvp_solver/
diff --git a/py-scikits_ann/Makefile b/py-scikits_ann/Makefile
index 651457c..bbe3b58 100644
--- a/py-scikits_ann/Makefile
+++ b/py-scikits_ann/Makefile
@@ -6,7 +6,7 @@ EGG_NAME=	${DISTNAME}
 PKGNAME=	${PYPKGPREFIX}-scikits_ann-0.2
 PKGREVISION=	1
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/s/scikits.ann/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scikits.ann/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://scipy.org/scipy/scikits/wiki/AnnWrapper
diff --git a/py-scikits_bvp1lg/Makefile b/py-scikits_bvp1lg/Makefile
index 13cc48f..967e424 100644
--- a/py-scikits_bvp1lg/Makefile
+++ b/py-scikits_bvp1lg/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	scikits.bvp1lg-0.2.5
 PKGNAME=	${PYPKGPREFIX}-scikits_bvp1lg-0.2.5
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/s/scikits.bvp1lg/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scikits.bvp1lg/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.iki.fi/pav/software/bvp
diff --git a/py-scikits_datasmooth/Makefile b/py-scikits_datasmooth/Makefile
index c0baae9..296d978 100644
--- a/py-scikits_datasmooth/Makefile
+++ b/py-scikits_datasmooth/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	scikits.datasmooth-0.5
 PKGNAME=	${PYPKGPREFIX}-scikits_datasmooth-0.5
 CATEGORIES=	misc python
-MASTER_SITES=	http://pypi.python.org/packages/source/s/scikits.datasmooth/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scikits.datasmooth/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://scikits.appspot.com/
diff --git a/py-scikits_image/Makefile b/py-scikits_image/Makefile
index 0ff7ebf..05d73bd 100644
--- a/py-scikits_image/Makefile
+++ b/py-scikits_image/Makefile
@@ -4,10 +4,10 @@
 DISTNAME=	scikits.image-0.2.2
 PKGNAME=	${PYPKGPREFIX}-scikits_talkbox-0.2.5
 CATEGORIES=	graphics python
-MASTER_SITES=	http://pypi.python.org/packages/source/s/scikits.image/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scikits.image/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	http://pypi.python.org/packages/source/s/scikits.image/
+HOMEPAGE=	${MASTER_SITE_PYPI:=s/scikits.image/}
 COMMENT=	Image processing routines for SciPy
 LICENSE=	modified-bsd
 
diff --git a/py-scikits_optimization/Makefile b/py-scikits_optimization/Makefile
index 08d429d..c62a514 100644
--- a/py-scikits_optimization/Makefile
+++ b/py-scikits_optimization/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	scikits.optimization-0.1
 PKGNAME=	${PYPKGPREFIX}-scikits_optimization-0.1
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/s/scikits.optimization/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scikits.optimization/}
 EXTRACT_SUFX=	.zip#md5=033ccd3056942d8a226aeb0eb8fbab45
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-scikits_samplerate/Makefile b/py-scikits_samplerate/Makefile
index b2f0924..b4551d2 100644
--- a/py-scikits_samplerate/Makefile
+++ b/py-scikits_samplerate/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	scikits.samplerate-0.3.3
 PKGNAME=	${PYPKGPREFIX}-scikits_samplerate-0.3.3
 CATEGORIES=	audio
-MASTER_SITES=	http://pypi.python.org/packages/source/s/scikits.samplerate/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scikits.samplerate/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.ar.media.kyoto-u.ac.jp/members/david/softwares/samplerate
diff --git a/py-scikits_scattpy/Makefile b/py-scikits_scattpy/Makefile
index 97e49d9..0f310bd 100644
--- a/py-scikits_scattpy/Makefile
+++ b/py-scikits_scattpy/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	scikits.scattpy-0.1.0
 PKGNAME=	${PYPKGPREFIX}-scikits_scattpy-0.1.0
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/s/scikits.scattpy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scikits.scattpy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://scattpy.github.com/
diff --git a/py-scikits_talkbox/Makefile b/py-scikits_talkbox/Makefile
index a8c868e..0062d09 100644
--- a/py-scikits_talkbox/Makefile
+++ b/py-scikits_talkbox/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	scikits.talkbox-0.2.5
 PKGNAME=	${PYPKGPREFIX}-scikits_talkbox-0.2.5
 CATEGORIES=	math  python
-MASTER_SITES=	http://pypi.python.org/packages/source/s/scikits.talkbox/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scikits.talkbox/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://projects.scipy.org/scipy/scikits
diff --git a/py-scikits_vectorplot/Makefile b/py-scikits_vectorplot/Makefile
index 4c605de..03d9699 100644
--- a/py-scikits_vectorplot/Makefile
+++ b/py-scikits_vectorplot/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	scikits.vectorplot-0.1.1
 PKGNAME=	${PYPKGPREFIX}-scikits_vectorplot-0.1.1
 CATEGORIES= math python
-MASTER_SITES=	http://pypi.python.org/packages/source/s/scikits.vectorplot/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scikits.vectorplot/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://projects.scipy.org/scipy/scikits
diff --git a/py-sciproc/Makefile b/py-sciproc/Makefile
index 32ecb0b..c858b72 100644
--- a/py-sciproc/Makefile
+++ b/py-sciproc/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	sciproc-0.7.22
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/s/sciproc/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/sciproc/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.nowebsite.com
diff --git a/py-scipy-data_fitting/Makefile b/py-scipy-data_fitting/Makefile
index 32aa560..35c3096 100644
--- a/py-scipy-data_fitting/Makefile
+++ b/py-scipy-data_fitting/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	scipy-data_fitting-0.0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/s/scipy-data_fitting/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scipy-data_fitting/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/razor-x/scipy-data_fitting
diff --git a/py-scp/Makefile b/py-scp/Makefile
index a0ecc00..be88789 100644
--- a/py-scp/Makefile
+++ b/py-scp/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	scp-0.10.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	net
-MASTER_SITES=	https://pypi.python.org/packages/source/s/scp/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scp/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	https://github.com/jbardin/scp.py
diff --git a/py-screenutils/Makefile b/py-screenutils/Makefile
index dbcdfa2..5a60408 100644
--- a/py-screenutils/Makefile
+++ b/py-screenutils/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	screenutils-0.0.1.5.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	sysutils
-MASTER_SITES=	https://pypi.python.org/packages/source/s/screenutils/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/screenutils/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/Christophe31/screenutils
diff --git a/py-scs/Makefile b/py-scs/Makefile
index 7313703..6bf07f1 100644
--- a/py-scs/Makefile
+++ b/py-scs/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	scs-1.0.7
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/s/scs/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scs/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/cvxgrp/scs
diff --git a/py-sdeint/Makefile b/py-sdeint/Makefile
index baaaa8b..254c151 100644
--- a/py-sdeint/Makefile
+++ b/py-sdeint/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	sdeint-0.2.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/s/sdeint/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/sdeint/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/mattja/sdeint/
diff --git a/py-sdt_metrics/Makefile b/py-sdt_metrics/Makefile
index b94aa1e..6b89c00 100644
--- a/py-sdt_metrics/Makefile
+++ b/py-sdt_metrics/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	sdt_metrics-0.1.2.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/s/sdt_metrics/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/sdt_metrics/}
 EXTRACT_SUFX=	.zip#md5=8f5b2a4ad73ec62c78872d2d3b509be2
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-seaborn/Makefile b/py-seaborn/Makefile
index f0b5cef..b6a5c32 100644
--- a/py-seaborn/Makefile
+++ b/py-seaborn/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	seaborn-0.3.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/s/seaborn/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/seaborn/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://stanford.edu/~mwaskom/software/seaborn/
diff --git a/py-selection/Makefile b/py-selection/Makefile
index 4e9c54e..84279c9 100644
--- a/py-selection/Makefile
+++ b/py-selection/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	selection-0.0.11
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	https://pypi.python.org/packages/source/s/selection/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/selection/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://pypi.python.org/pypi/selection/
diff --git a/py-selenium/Makefile b/py-selenium/Makefile
index 5b62c21..4e036b2 100644
--- a/py-selenium/Makefile
+++ b/py-selenium/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	selenium-2.41.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/s/selenium/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/selenium/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	 http://code.google.com/p/selenium/
diff --git a/py-semidbm/Makefile b/py-semidbm/Makefile
index 95a8b80..545e92d 100644
--- a/py-semidbm/Makefile
+++ b/py-semidbm/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	semidbm-0.5.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	databases python
-MASTER_SITES=	https://pypi.python.org/packages/source/s/semidbm/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/semidbm/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/s/semidbm/
+HOMEPAGE=	${MASTER_SITE_PYPI:=s/semidbm/}
 COMMENT=	Cross platform (fast) DBM interface in python
 #LICENSE=	# TODO: (see mk/license.mk)
 
diff --git a/py-sempy/Makefile b/py-sempy/Makefile
index 5b162d5..d4f7651 100644
--- a/py-sempy/Makefile
+++ b/py-sempy/Makefile
@@ -4,10 +4,10 @@
 DISTNAME=	sempy-0.0.18
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/s/sempy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/sempy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	http://pypi.python.org/packages/source/s/sempy/
+HOMEPAGE=	${MASTER_SITE_PYPI:=s/sempy/}
 COMMENT=	Python implementation of the spectral element method
 LICENSE=	gnu-gpl-v2
 
diff --git a/py-sentry/Makefile b/py-sentry/Makefile
index 613dcdb..b334809 100644
--- a/py-sentry/Makefile
+++ b/py-sentry/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	sentry-7.0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	https://pypi.python.org/packages/source/s/sentry/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/sentry/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://www.getsentry.com
diff --git a/py-sep/Makefile b/py-sep/Makefile
index 8cdf495..d77a570 100644
--- a/py-sep/Makefile
+++ b/py-sep/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	sep-0.4.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	geography python
-MASTER_SITES=	https://pypi.python.org/packages/source/s/sep/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/sep/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/kbarbary/sep
diff --git a/py-setupdocs/Makefile b/py-setupdocs/Makefile
index 329490d..1a9a762 100644
--- a/py-setupdocs/Makefile
+++ b/py-setupdocs/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	SetupDocs-1.0.4.tar
 EGG_NAME=	SetupDocs-1.0.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/S/s/:S/D/d/:S/.tar//}
 CATEGORIES=	devel
-MASTER_SITES=	http://pypi.python.org/packages/source/S/SetupDocs/
+MASTER_SITES=	${MASTER_SITE_PYPI:=S/SetupDocs/}
 EXTRACT_SUFX=	.gz#md5=824bcf896b7e4e7c610d65544e28bdd1
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-setuptools_git/Makefile b/py-setuptools_git/Makefile
index 1b0c7bd..787ff58 100644
--- a/py-setuptools_git/Makefile
+++ b/py-setuptools_git/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	setuptools_git-0.3.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/s/setuptools-git/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/setuptools-git/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/setuptools-git
diff --git a/py-shapely/Makefile b/py-shapely/Makefile
index 3afa665..12697a9 100644
--- a/py-shapely/Makefile
+++ b/py-shapely/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Shapely-1.3.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/S/Shapely/
+MASTER_SITES=	${MASTER_SITE_PYPI:=S/Shapely/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/sgillies/shapely
diff --git a/py-shutilwhich/Makefile b/py-shutilwhich/Makefile
index 15e10b4..eccc26c 100644
--- a/py-shutilwhich/Makefile
+++ b/py-shutilwhich/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	shutilwhich-1.0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/s/shutilwhich/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/shutilwhich/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/mbr/shutilwhich
diff --git a/py-sima/Makefile b/py-sima/Makefile
index e4f02f8..3104325 100644
--- a/py-sima/Makefile
+++ b/py-sima/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	sima-0.3.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology
-MASTER_SITES=	https://pypi.python.org/packages/source/s/sima/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/sima/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.losonczylab.org/sima/
diff --git a/py-simplegeneric/Makefile b/py-simplegeneric/Makefile
index 91859b0..93bccf5 100644
--- a/py-simplegeneric/Makefile
+++ b/py-simplegeneric/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	simplegeneric-0.8.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/s/simplegeneric/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/simplegeneric/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-simulators/Makefile b/py-simulators/Makefile
index 22250b0..fdcdda7 100644
--- a/py-simulators/Makefile
+++ b/py-simulators/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pysimulators-1.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pysimulators/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pysimulators/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://pchanial.github.com/pysimulators
diff --git a/py-sleekxmpp/Makefile b/py-sleekxmpp/Makefile
index f87f2a5..f91df40 100644
--- a/py-sleekxmpp/Makefile
+++ b/py-sleekxmpp/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	sleekxmpp-1.3.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	chat net python
-MASTER_SITES=	https://pypi.python.org/packages/source/s/sleekxmpp/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/sleekxmpp/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/fritzy/SleekXMPP
diff --git a/py-slowaes/Makefile b/py-slowaes/Makefile
index a578ca7..cc31e10 100644
--- a/py-slowaes/Makefile
+++ b/py-slowaes/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	slowaes-0.1a1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	security python
-MASTER_SITES=	http://pypi.python.org/packages/source/s/slowaes/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/slowaes/}
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
 NO_BUILD=	yes
 
diff --git a/py-smcp/Makefile b/py-smcp/Makefile
index 59ef23f..9149a08 100644
--- a/py-smcp/Makefile
+++ b/py-smcp/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	smcp-0.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/s/smcp/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/smcp/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://cvxopt.github.io/smcp
diff --git a/py-smell/Makefile b/py-smell/Makefile
index a7f69cc..b659b98 100644
--- a/py-smell/Makefile
+++ b/py-smell/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pysmell-0.7.3
 PKGNAME=	${PYPKGPREFIX}-smell-0.7.3
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pysmell/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pysmell/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-smmap/Makefile b/py-smmap/Makefile
index 4fac9bb..ebfb0db 100644
--- a/py-smmap/Makefile
+++ b/py-smmap/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	smmap-0.8.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/s/smmap/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/smmap/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	https://github.com/Byron/smmap
diff --git a/py-smop/Makefile b/py-smop/Makefile
index 5bc8944..91b832f 100644
--- a/py-smop/Makefile
+++ b/py-smop/Makefile
@@ -2,7 +2,7 @@
 
 DISTNAME=	smop-0.1.5
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/s/smop/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/smop/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://chiselapp.com/user/victorlei/repository/smop-dev/index
diff --git a/py-snappy/Makefile b/py-snappy/Makefile
index 4204a06..1ce9fc5 100644
--- a/py-snappy/Makefile
+++ b/py-snappy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	python-snappy-0.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/python-//}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/python-snappy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/python-snappy/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/andrix/python-snappy
diff --git a/py-socksipy-branch/Makefile b/py-socksipy-branch/Makefile
index f6b6362..6cde8af 100644
--- a/py-socksipy-branch/Makefile
+++ b/py-socksipy-branch/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	SocksiPy-branch-1.01
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=     net
-MASTER_SITES=	https://pypi.python.org/packages/source/S/SocksiPy-branch/
+MASTER_SITES=	${MASTER_SITE_PYPI:=S/SocksiPy-branch/}
 
 MAINTAINER=     kethzer.dr%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/S/SocksiPy-branch/
+HOMEPAGE=	${MASTER_SITE_PYPI:=S/SocksiPy-branch/}
 COMMENT=        Python SOCKS module
 LICENSE=        modified-bsd
 
diff --git a/py-sode/Makefile b/py-sode/Makefile
index b19719c..3a25053 100644
--- a/py-sode/Makefile
+++ b/py-sode/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	sode-0.0.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/s/sode/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/sode/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	 https://github.com/oscarbenjamin/sode
diff --git a/py-sofa/Makefile b/py-sofa/Makefile
index abd1263..2217952 100644
--- a/py-sofa/Makefile
+++ b/py-sofa/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	pysofa-0.1.0a2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/^py//}
 PKGREVISION=	2
 CATEGORIES=	misc python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pysofa/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pysofa/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://code.google.com/p/pysofa/
diff --git a/py-solpy/Makefile b/py-solpy/Makefile
index 1cd2a8b..a3b80b4 100644
--- a/py-solpy/Makefile
+++ b/py-solpy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	solpy-0.2.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/s/solpy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/solpy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/nrcharles/solpy
diff --git a/py-speview/Makefile b/py-speview/Makefile
index 16dccb0..67fca2c 100644
--- a/py-speview/Makefile
+++ b/py-speview/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	speview-0.1.3
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/s/speview/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/speview/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/ximeg/speview
diff --git a/py-sphereTS/Makefile b/py-sphereTS/Makefile
index 9ec4c65..abd4622 100644
--- a/py-sphereTS/Makefile
+++ b/py-sphereTS/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	sphereTS-1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/s/sphereTS/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/sphereTS/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-sphinxreport/Makefile b/py-sphinxreport/Makefile
index 3390326..ea904f3 100644
--- a/py-sphinxreport/Makefile
+++ b/py-sphinxreport/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	SphinxReport-2.0
 PKGNAME=        ${PYPKGPREFIX}-sphinxreport-2.0
 CATEGORIES=	textproc
-MASTER_SITES=	https://pypi.python.org/packages/source/S/SphinxReport/
+MASTER_SITES=	${MASTER_SITE_PYPI:=S/SphinxReport/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://code.google.com/p/sphinx-report/
diff --git a/py-sphviewer/Makefile b/py-sphviewer/Makefile
index cf2aead..ac5d19e 100644
--- a/py-sphviewer/Makefile
+++ b/py-sphviewer/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	py-sphviewer-0.88
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py-//}
 CATEGORIES=	graphics math python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/py-sphviewer/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/py-sphviewer/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://code.google.com/p/py-sphviewer/
diff --git a/py-sppy/Makefile b/py-sppy/Makefile
index f045933..3bf84e3 100644
--- a/py-sppy/Makefile
+++ b/py-sppy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	sppy-0.6.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/s/sppy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/sppy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://packages.python.org/sppy/
diff --git a/py-sqlalchemy-searchable/Makefile b/py-sqlalchemy-searchable/Makefile
index b9952a7..a577251 100644
--- a/py-sqlalchemy-searchable/Makefile
+++ b/py-sqlalchemy-searchable/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	SQLAlchemy-Searchable-0.9.3
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc
-MASTER_SITES=	https://pypi.python.org/packages/source/S/SQLAlchemy-Searchable/
+MASTER_SITES=	${MASTER_SITE_PYPI:=S/SQLAlchemy-Searchable/}
 
 MAINTAINER=     pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/S/SQLAlchemy-Searchable/
+HOMEPAGE=	${MASTER_SITE_PYPI:=S/SQLAlchemy-Searchable/}
 COMMENT=        Provides fulltext search capabilities
 LICENSE=	modified-bsd # TODO: (see mk/license.mk)
 
diff --git a/py-ssp/Makefile b/py-ssp/Makefile
index 044890d..2e08ff4 100644
--- a/py-ssp/Makefile
+++ b/py-ssp/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pyssp-0.1.6.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyssp/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyssp/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://bitbucket.org/aihara/pyssp/
diff --git a/py-stache/Makefile b/py-stache/Makefile
index af1f4e2..5424885 100644
--- a/py-stache/Makefile
+++ b/py-stache/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	pystache-0.5.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S//py/}
 CATEGORIES=	www
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pystache/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pystache/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/p/pystache/
+HOMEPAGE=	${MASTER_SITE_PYPI:=p/pystache/}
 COMMENT=	Mustache for Python
 LICENSE=	mit
 
diff --git a/py-statsmodels/Makefile b/py-statsmodels/Makefile
index 9fe3229..e41af50 100644
--- a/py-statsmodels/Makefile
+++ b/py-statsmodels/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	statsmodels-0.5.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/s/statsmodels/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/statsmodels/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://statsmodels.sourceforge.net/
diff --git a/py-stevedore/Makefile b/py-stevedore/Makefile
index 577ee2c..e48f07a 100644
--- a/py-stevedore/Makefile
+++ b/py-stevedore/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	stevedore-1.7.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/s/stevedore/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/stevedore/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/dreamhost/stevedore
diff --git a/py-strategies/Makefile b/py-strategies/Makefile
index 750b1be..02dcea6 100644
--- a/py-strategies/Makefile
+++ b/py-strategies/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	strategies-0.1.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/s/strategies/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/strategies/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://github.com/logpy/strategies
diff --git a/py-sumatra/Makefile b/py-sumatra/Makefile
index 5872461..8cde5e9 100644
--- a/py-sumatra/Makefile
+++ b/py-sumatra/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	Sumatra-${VER}
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/S/s/}
 PKGREVISION=	1
 CATEGORIES=	biology python
-MASTER_SITES=	http://pypi.python.org/packages/source/S/Sumatra/
+MASTER_SITES=	${MASTER_SITE_PYPI:=S/Sumatra/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 COMMENT=	Tracking projects based on numerical simulation or analysis
diff --git a/py-sunpy/Makefile b/py-sunpy/Makefile
index 44291ba..6b1150e 100644
--- a/py-sunpy/Makefile
+++ b/py-sunpy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	sunpy-0.6.1
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/s/sunpy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/sunpy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://www.sunpy.org/
diff --git a/py-symath/Makefile b/py-symath/Makefile
index 8967b4d..1b67a90 100644
--- a/py-symath/Makefile
+++ b/py-symath/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	symath-0.1.22
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/s/symath/
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/symath/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/bniemczyk/symbolic
diff --git a/py-symboltype/Makefile b/py-symboltype/Makefile
index f1c63bb..167906d 100644
--- a/py-symboltype/Makefile
+++ b/py-symboltype/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	SymbolType-1.0
 EGG_NAME=	${DISTNAME}
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/S/s/S/T/t/}
 CATEGORIES=	devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/S/SymbolType/
+MASTER_SITES=	${MASTER_SITE_PYPI:=S/SymbolType/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
diff --git a/py-tablib-garetjax/Makefile b/py-tablib-garetjax/Makefile
index ce0d0b7..62c5733 100644
--- a/py-tablib-garetjax/Makefile
+++ b/py-tablib-garetjax/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	tablib-garetjax-0.9.12
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc
-MASTER_SITES=	https://pypi.python.org/packages/source/t/tablib-garetjax/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/tablib-garetjax/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://python-tablib.org/
diff --git a/py-tardis-sn/Makefile b/py-tardis-sn/Makefile
index 2f99848..1394f58 100644
--- a/py-tardis-sn/Makefile
+++ b/py-tardis-sn/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	tardis-sn-0.9rc1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/t/tardis-sn/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/tardis-sn/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://tardis.readthedocs.org/
diff --git a/py-tashaphyne/Makefile b/py-tashaphyne/Makefile
index 2e7a396..822ea6c 100644
--- a/py-tashaphyne/Makefile
+++ b/py-tashaphyne/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	Tashaphyne-0.2
 PKGNAME=	${PYPKGPREFIX}-tashaphyne-0.2
 CATEGORIES=	textproc python #arabic
-MASTER_SITES=	http://pypi.python.org/packages/source/T/Tashaphyne/
+MASTER_SITES=	${MASTER_SITE_PYPI:=T/Tashaphyne/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-tasphyne/Makefile b/py-tasphyne/Makefile
index cf6bc98..8d7f769 100644
--- a/py-tasphyne/Makefile
+++ b/py-tasphyne/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	Tashaphyne-0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/T/t/}
 CATEGORIES=	textproc python
-MASTER_SITES=	http://pypi.python.org/packages/source/T/Tashaphyne/
+MASTER_SITES=	${MASTER_SITE_PYPI:=T/Tashaphyne/}
 EXTRACT_SUFX=	.zip#md5=29cde2cc10c9f5e9ed1eafebda3c78e2
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-teafiles/Makefile b/py-teafiles/Makefile
index 4499448..883320f 100644
--- a/py-teafiles/Makefile
+++ b/py-teafiles/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	teafiles-0.7.4
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math finance
-MASTER_SITES=	http://pypi.python.org/packages/source/t/teafiles/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/teafiles/}
 EXTRACT_SUFX=	.zip#md5=c6a4cca7fff1e5a5d01c2c59b3339b04
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-thLib/Makefile b/py-thLib/Makefile
index 13b2c0b..488f2f7 100644
--- a/py-thLib/Makefile
+++ b/py-thLib/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	thLib-0.2.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/t/thLib/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/thLib/}
 EXTRACT_SUFX=	.zip#md5=4539622094282799aec58c3470923e8a
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-theano/Makefile b/py-theano/Makefile
index 051857e..5bc2b6f 100644
--- a/py-theano/Makefile
+++ b/py-theano/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	Theano-0.7.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/T/Theano/
+MASTER_SITES=	${MASTER_SITE_PYPI:=T/Theano/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://deeplearning.net/software/theano/
diff --git a/py-thermopy/Makefile b/py-thermopy/Makefile
index b711556..656e6dd 100644
--- a/py-thermopy/Makefile
+++ b/py-thermopy/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	thermopy-0.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology python
-MASTER_SITES=	http://pypi.python.org/packages/source/t/thermopy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/thermopy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://packages.python.org/thermopy
diff --git a/py-tinydb/Makefile b/py-tinydb/Makefile
index 158453f..62d8447 100644
--- a/py-tinydb/Makefile
+++ b/py-tinydb/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	tinydb-2.3.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	databases python
-MASTER_SITES=	https://pypi.python.org/packages/source/t/tinydb/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/tinydb/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-tkinter-help/Makefile b/py-tkinter-help/Makefile
index ed0bf90..c6157fa 100644
--- a/py-tkinter-help/Makefile
+++ b/py-tkinter-help/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	tkinter.help-2.0
 PKGNAME=	${PYPKGPREFIX}-tkinter-help-2.0
 CATEGORIES=	x11 python
-MASTER_SITES=	http://pypi.python.org/packages/source/t/tkinter.help/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/tkinter.help/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
diff --git a/py-tklsystem/Makefile b/py-tklsystem/Makefile
index 56abbd5..96eabb0 100644
--- a/py-tklsystem/Makefile
+++ b/py-tklsystem/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	TkLsystem-0.2.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/T/TkLsystem/
+MASTER_SITES=	${MASTER_SITE_PYPI:=T/TkLsystem/}
 EXTRACT_SUFX=	.zip#md5=af56cdc95cda767a7fdbf66db27c278e
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-tmux/Makefile b/py-tmux/Makefile
index 11f5663..e615c6f 100644
--- a/py-tmux/Makefile
+++ b/py-tmux/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	pytmux-0.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	misc python
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pytmux/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pytmux/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/p/pytmux/
+HOMEPAGE=	${MASTER_SITE_PYPI:=p/pytmux/}
 COMMENT=	Simple wrapper for tmux
 LICENSE=	apache-2.0
 
diff --git a/py-toeplitz/Makefile b/py-toeplitz/Makefile
index 3ddcdf6..3cd7a95 100644
--- a/py-toeplitz/Makefile
+++ b/py-toeplitz/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	toeplitz-0.1.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/t/toeplitz/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/toeplitz/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/trichter/toeplitz
diff --git a/py-toolz/Makefile b/py-toolz/Makefile
index facec77..10c5e37 100644
--- a/py-toolz/Makefile
+++ b/py-toolz/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	toolz-0.7.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/t/toolz/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/toolz/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/pytoolz/toolz/
diff --git a/py-toro/Makefile b/py-toro/Makefile
index adefab5..832fed2 100644
--- a/py-toro/Makefile
+++ b/py-toro/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	toro-0.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www python
-MASTER_SITES=	https://pypi.python.org/packages/source/t/toro/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/toro/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/ajdavis/toro/
diff --git a/py-toscawidgets/Makefile b/py-toscawidgets/Makefile
index c360534..64d5c7d 100644
--- a/py-toscawidgets/Makefile
+++ b/py-toscawidgets/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	ToscaWidgets-0.9.9
 EGG_NAME=	${DISTNAME}
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/T/t/S/W/w/}
 CATEGORIES=	www python
-MASTER_SITES=	http://pypi.python.org/packages/source/T/ToscaWidgets/
+MASTER_SITES=	${MASTER_SITE_PYPI:=T/ToscaWidgets/}
 EXTRACT_SUFX=	.gz
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-transaction/Makefile b/py-transaction/Makefile
index 7989b9f..6ba75e5 100644
--- a/py-transaction/Makefile
+++ b/py-transaction/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	transaction-1.1.1
 EGG_NAME=	${DISTNAME}
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	http://pypi.python.org/packages/source/t/transaction/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/transaction/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://www.zope.org/Products/ZODB
diff --git a/py-translationstring/Makefile b/py-translationstring/Makefile
index ddf3e35..cad1594 100644
--- a/py-translationstring/Makefile
+++ b/py-translationstring/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	translationstring-1.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/t/translationstring/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/translationstring/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://pylonsproject.org
diff --git a/py-trollius/Makefile b/py-trollius/Makefile
index bdc0ec4..11b49e8 100644
--- a/py-trollius/Makefile
+++ b/py-trollius/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	trollius-1.0.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/t/trollius/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/trollius/}
 
 HOMEPAGE=	https://bitbucket.org/enovance/trollius/
 COMMENT=	Module asyncio, for writing single-threaded concurrent code
diff --git a/py-tsgeom/Makefile b/py-tsgeom/Makefile
index eef2f3b..37dee33 100644
--- a/py-tsgeom/Makefile
+++ b/py-tsgeom/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	TSGeom-0.1.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/T/TSGeom/
+MASTER_SITES=	${MASTER_SITE_PYPI:=T/TSGeom/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/jbn/TSGeom
diff --git a/py-ttk/Makefile b/py-ttk/Makefile
index 7b2e931..6725e85 100644
--- a/py-ttk/Makefile
+++ b/py-ttk/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pyttk-0.3.2
 PKGNAME=	${PYPKGPREFIX}-ttk-0.3.2
 CATEGORIES=	x11 python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyttk/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyttk/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://code.google.com/p/python-ttk/
diff --git a/py-turbojson/Makefile b/py-turbojson/Makefile
index 68cb500..0c7e49d 100644
--- a/py-turbojson/Makefile
+++ b/py-turbojson/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	TurboJson-1.2.1
 EGG_NAME=	${DISTNAME}
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/T/t/S/J/j/}
 CATEGORIES=	www
-MASTER_SITES=	http://pypi.python.org/packages/source/T/TurboJson/
+MASTER_SITES=	${MASTER_SITE_PYPI:=T/TurboJson/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/TurboJson
diff --git a/py-twilio/Makefile b/py-twilio/Makefile
index 6a45451..757f707 100644
--- a/py-twilio/Makefile
+++ b/py-twilio/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	twilio-4.5.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	net
-MASTER_SITES=	https://pypi.python.org/packages/source/t/twilio/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/twilio/}
 
 MAINTAINER=	kethzer.dr%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/t/twilio/
+HOMEPAGE=	${MASTER_SITE_PYPI:=t/twilio/}
 COMMENT=	Twilio API client and TwiML generator
 LICENSE=	mit
 
diff --git a/py-txWS/Makefile b/py-txWS/Makefile
index 46becb8..96c35c3 100644
--- a/py-txWS/Makefile
+++ b/py-txWS/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	txWS-0.9.1
 PKGNAME=	${PYPKGPREFIX}-txWS-0.9.1
 CATEGORIES=	net python
-MASTER_SITES=	https://pypi.python.org/packages/source/t/txWS/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/txWS/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/MostAwesomeDude/txWS
diff --git a/py-txZMQ/Makefile b/py-txZMQ/Makefile
index 2fbcf68..0099d5f 100644
--- a/py-txZMQ/Makefile
+++ b/py-txZMQ/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	txZMQ-0.7.3
 PKGNAME=	${PYPKGPREFIX}-txZMQ-0.7.3
 CATEGORIES=	net python
-MASTER_SITES=	https://pypi.python.org/packages/source/t/txZMQ/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/txZMQ/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/smira/txZMQ
diff --git a/py-txdbus/Makefile b/py-txdbus/Makefile
index f3189c1..0e28858 100644
--- a/py-txdbus/Makefile
+++ b/py-txdbus/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	txdbus-1.0.8
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	sysutils
-MASTER_SITES=	https://pypi.python.org/packages/source/t/txdbus/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/txdbus/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	https://github.com/cocagne/txdbus
diff --git a/py-typedecorator/Makefile b/py-typedecorator/Makefile
index dca26f2..b8bfeff 100644
--- a/py-typedecorator/Makefile
+++ b/py-typedecorator/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	typedecorator-0.0.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/t/typedecorator/
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/typedecorator/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/dobarkod/typedecorator/
diff --git a/py-umalqurra/Makefile b/py-umalqurra/Makefile
index b22dd55..8cc262a 100644
--- a/py-umalqurra/Makefile
+++ b/py-umalqurra/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	umalqurra-0.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc
-MASTER_SITES=	https://pypi.python.org/packages/source/u/umalqurra/
+MASTER_SITES=	${MASTER_SITE_PYPI:=u/umalqurra/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/tytkal/python-hijiri-ummalqura
diff --git a/py-uncertainties/Makefile b/py-uncertainties/Makefile
index b865c61..bc50644 100644
--- a/py-uncertainties/Makefile
+++ b/py-uncertainties/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	uncertainties-2.4.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	https://pypi.python.org/packages/source/u/uncertainties/
+MASTER_SITES=	${MASTER_SITE_PYPI:=u/uncertainties/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://packages.python.org/uncertainties/
diff --git a/py-uptime/Makefile b/py-uptime/Makefile
index c16a1eb..696407a 100644
--- a/py-uptime/Makefile
+++ b/py-uptime/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	uptime-3.0.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	sysutils
-MASTER_SITES=	https://pypi.python.org/packages/source/u/uptime/
+MASTER_SITES=	${MASTER_SITE_PYPI:=u/uptime/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/Cairnarvon/uptime
diff --git a/py-usagestats/Makefile b/py-usagestats/Makefile
index 87b2833..6f344ba 100644
--- a/py-usagestats/Makefile
+++ b/py-usagestats/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	usagestats-0.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	systutils python
-MASTER_SITES=	https://pypi.python.org/packages/source/u/usagestats/
+MASTER_SITES=	${MASTER_SITE_PYPI:=u/usagestats/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/remram44/usagestats
diff --git a/py-user_agent/Makefile b/py-user_agent/Makefile
index 4f63a63..2b8dd6f 100644
--- a/py-user_agent/Makefile
+++ b/py-user_agent/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	user_agent-0.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	https://pypi.python.org/packages/source/u/user_agent/
+MASTER_SITES=	${MASTER_SITE_PYPI:=u/user_agent/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://pypi.python.org/pypi/user_agent/
diff --git a/py-utilib_common/Makefile b/py-utilib_common/Makefile
index 62c80b1..c3e56ff 100644
--- a/py-utilib_common/Makefile
+++ b/py-utilib_common/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	pyutilib.common-3.0.4
 PKGNAME=	${PYPKGPREFIX}-utilib_common-3.0.4
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyutilib.common/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyutilib.common/}
 
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-utilib_component_app/Makefile b/py-utilib_component_app/Makefile
index 448e6bd..bf7795f 100644
--- a/py-utilib_component_app/Makefile
+++ b/py-utilib_component_app/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	pyutilib.component.app-3.1.3
 PKGNAME=	${PYPKGPREFIX}-utilib_component_app-${VERSION}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyutilib.component.app/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyutilib.component.app/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	https://software.sandia.gov/trac/pyutilib
diff --git a/py-utilib_component_config/Makefile b/py-utilib_component_config/Makefile
index 3cbb9dc..50c0257 100644
--- a/py-utilib_component_config/Makefile
+++ b/py-utilib_component_config/Makefile
@@ -4,11 +4,11 @@
 DISTNAME=	pyutilib.component.config-3.2.3
 PKGNAME=	${PYPKGPREFIX}-utilib_component_config-${VERSION}
 CATEGORIES=	math devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyutilib.component.config/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyutilib.component.config/}
 
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	http://pypi.python.org/packages/source/p/pyutilib.component.config/
+HOMEPAGE=	${MASTER_SITE_PYPI:=p/pyutilib.component.config/}
 COMMENT=	Extensions for configuring components in PyUtilib
 LICENSE=	modified-bsd
 
diff --git a/py-utilib_component_core/Makefile b/py-utilib_component_core/Makefile
index e133480..f19ff8e 100644
--- a/py-utilib_component_core/Makefile
+++ b/py-utilib_component_core/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	pyutilib.component.core-4.1.1
 PKGNAME=	${PYPKGPREFIX}-utilib_component_core-3.0.4
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyutilib.component.core/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyutilib.component.core/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://software.sandia.gov/svn/public/pyutilib/pyutilib.component.coree/
diff --git a/py-utilib_component_executables/Makefile b/py-utilib_component_executables/Makefile
index 784ef77..c354c90 100644
--- a/py-utilib_component_executables/Makefile
+++ b/py-utilib_component_executables/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	pyutilib.component.executables-3.4
 PKGNAME=	${PYPKGPREFIX}-utilib_component_executables-${VERSION}
 CATEGORIES=	math devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyutilib.component.executables/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyutilib.component.executables/}
 
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-utilib_component_loader/Makefile b/py-utilib_component_loader/Makefile
index 010013d..32eb845 100644
--- a/py-utilib_component_loader/Makefile
+++ b/py-utilib_component_loader/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	pyutilib.component.loader-3.2.3
 PKGNAME=	${PYPKGPREFIX}-utilib_component_loader-${VERSION}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyutilib.component.loader/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyutilib.component.loader/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	https://software.sandia.gov/trac/pyutilib
diff --git a/py-utilib_enum/Makefile b/py-utilib_enum/Makefile
index 86fa1f9..3718e12 100644
--- a/py-utilib_enum/Makefile
+++ b/py-utilib_enum/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	pyutilib.enum-1.0.5
 PKGNAME=	${PYPKGPREFIX}-utilib_enum-${VERSION}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyutilib.enum/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyutilib.enum/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	https://software.sandia.gov/svn/public/pyutilib/pyutilib.enum
diff --git a/py-utilib_excel/Makefile b/py-utilib_excel/Makefile
index f995de6..de18160 100644
--- a/py-utilib_excel/Makefile
+++ b/py-utilib_excel/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	pyutilib.excel-3.0.4
 PKGNAME=	${PYPKGPREFIX}-utilib_excel-3.0.4
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyutilib.excel/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyutilib.excel/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	https://software.sandia.gov/svn/public/pyutilib/pyutilib.excel
diff --git a/py-utilib_math/Makefile b/py-utilib_math/Makefile
index 6d8bd3d..15d5eec 100644
--- a/py-utilib_math/Makefile
+++ b/py-utilib_math/Makefile
@@ -5,10 +5,10 @@ VERSION=	3.0.4
 DISTNAME=	pyutilib.math-${VERSION}
 PKGNAME=	${PYPKGPREFIX}-utilib_math-${VERSION}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyutilib.math/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyutilib.math/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	http://pypi.python.org/packages/source/p/pyutilib.math/
+HOMEPAGE=	${MASTER_SITE_PYPI:=p/pyutilib.math/}
 COMMENT=	PyUtilib math utilities
 LICENSE=	modified-bsd
 
diff --git a/py-utilib_misc/Makefile b/py-utilib_misc/Makefile
index 93217d3..cf996c3 100644
--- a/py-utilib_misc/Makefile
+++ b/py-utilib_misc/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	pyutilib.misc-4.3
 PKGNAME=	${PYPKGPREFIX}-utilib_misc-4.3
 CATEGORIES=	math
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyutilib.misc/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyutilib.misc/}
 
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-utilib_ply/Makefile b/py-utilib_ply/Makefile
index db968bd..08b233b 100644
--- a/py-utilib_ply/Makefile
+++ b/py-utilib_ply/Makefile
@@ -5,7 +5,7 @@ VERSION=	3.0.4
 DISTNAME=	pyutilib.ply-3.0.4
 PKGNAME=	${PYPKGPREFIX}-utilib_ply-${VERSION}
 CATEGORIES=	devel python
-MASTER_SITES=	http://pypi.python.org/packages/source/p/pyutilib.ply/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyutilib.ply/}
 
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
diff --git a/py-uuid/Makefile b/py-uuid/Makefile
index 5060ea8..372f6ed 100644
--- a/py-uuid/Makefile
+++ b/py-uuid/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	uuid-1.30
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 PKGREVISION=	2
 CATEGORIES=	net
-MASTER_SITES=	https://pypi.python.org/packages/source/u/uuid/
+MASTER_SITES=	${MASTER_SITE_PYPI:=u/uuid/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/uuid/1.30
diff --git a/py-validictory/Makefile b/py-validictory/Makefile
index 289fd36..42fe8e6 100644
--- a/py-validictory/Makefile
+++ b/py-validictory/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	validictory-1.0.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc
-MASTER_SITES=	https://pypi.python.org/packages/source/v/validictory/
+MASTER_SITES=	${MASTER_SITE_PYPI:=v/validictory/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://github.com/sunlightlabs/validictory
diff --git a/py-vanity/Makefile b/py-vanity/Makefile
index 2ad7b6f..7058ba3 100644
--- a/py-vanity/Makefile
+++ b/py-vanity/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	vanity-2.0.5
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/v/vanity/
+MASTER_SITES=	${MASTER_SITE_PYPI:=v/vanity/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-varify/Makefile b/py-varify/Makefile
index 7cee24d..f883be4 100644
--- a/py-varify/Makefile
+++ b/py-varify/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	varify-0.7.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	biology python
-MASTER_SITES=	https://pypi.python.org/packages/source/v/varify/
+MASTER_SITES=	${MASTER_SITE_PYPI:=v/varify/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://github.com/cbmi/varify
diff --git a/py-vcversioner/Makefile b/py-vcversioner/Makefile
index cca356c..00149ab 100644
--- a/py-vcversioner/Makefile
+++ b/py-vcversioner/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	vcversioner-2.14.0.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
-MASTER_SITES=	https://pypi.python.org/packages/source/v/vcversioner/
+MASTER_SITES=	${MASTER_SITE_PYPI:=v/vcversioner/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/habnabit/vcversioner
diff --git a/py-vdirsyncer-git/Makefile b/py-vdirsyncer-git/Makefile
index b565e8f..22cd6c8 100644
--- a/py-vdirsyncer-git/Makefile
+++ b/py-vdirsyncer-git/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	vdirsyncer-0.6.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	time
-MASTER_SITES=	https://pypi.python.org/packages/source/v/vdirsyncer/
+MASTER_SITES=	${MASTER_SITE_PYPI:=v/vdirsyncer/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	https://pypi.python.org/pypi/vdirsyncer/
diff --git a/py-vegas/Makefile b/py-vegas/Makefile
index b92ea7f..26b2cda 100644
--- a/py-vegas/Makefile
+++ b/py-vegas/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	vegas-2.1.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/v/vegas/
+MASTER_SITES=	${MASTER_SITE_PYPI:=v/vegas/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/v/vegas/
+HOMEPAGE=	${MASTER_SITE_PYPI:=v/vegas/}
 COMMENT=	Tools for adaptive multidimensional Monte Carlo integration
 LICENSE=	gnu-gpl-v3
 
diff --git a/py-venusian/Makefile b/py-venusian/Makefile
index c060662..53d6bf3 100644
--- a/py-venusian/Makefile
+++ b/py-venusian/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	venusian-1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/v/venusian/
+MASTER_SITES=	${MASTER_SITE_PYPI:=v/venusian/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://pylonsproject.org
diff --git a/py-verilog/Makefile b/py-verilog/Makefile
index 11bcb56..da6fb2c 100644
--- a/py-verilog/Makefile
+++ b/py-verilog/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pyverilog-1.0.6
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	category
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyverilog/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyverilog/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/PyHDI/Pyverilog
diff --git a/py-verilog/Makefile-url2pkg.bak b/py-verilog/Makefile-url2pkg.bak
index d9971d7..f1f2ec0 100644
--- a/py-verilog/Makefile-url2pkg.bak
+++ b/py-verilog/Makefile-url2pkg.bak
@@ -2,10 +2,10 @@
 
 DISTNAME=	pyverilog-1.0.1
 CATEGORIES=	category
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyverilog/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyverilog/}
 
 MAINTAINER=	INSERT_YOUR_MAIL_ADDRESS_HERE
-HOMEPAGE=	https://pypi.python.org/packages/source/p/pyverilog/
+HOMEPAGE=	${MASTER_SITE_PYPI:=p/pyverilog/}
 COMMENT=	TODO: Short description of the package
 #LICENSE=	# TODO: (see mk/license.mk)
 
diff --git a/py-vispy/Makefile b/py-vispy/Makefile
index f803cf4..72c1984 100644
--- a/py-vispy/Makefile
+++ b/py-vispy/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	vispy-0.4.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	graphics python
-MASTER_SITES=	https://pypi.python.org/packages/source/v/vispy/
+MASTER_SITES=	${MASTER_SITE_PYPI:=v/vispy/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	 http://vispy.org
diff --git a/py-voronoi/Makefile b/py-voronoi/Makefile
index 2b2e6d0..c95ae14 100644
--- a/py-voronoi/Makefile
+++ b/py-voronoi/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	pyvoronoi-0.0.6
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/p/pyvoronoi/
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pyvoronoi/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-wafo/Makefile b/py-wafo/Makefile
index 0441027..52b5aa6 100644
--- a/py-wafo/Makefile
+++ b/py-wafo/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	wafo-0.1.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math python
-MASTER_SITES=	http://pypi.python.org/packages/source/w/wafo/
+MASTER_SITES=	${MASTER_SITE_PYPI:=w/wafo/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
diff --git a/py-wally/Makefile b/py-wally/Makefile
index 09051b0..d1bd7a2 100644
--- a/py-wally/Makefile
+++ b/py-wally/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	Wally-0.6.14
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/Wally/wally/}
 PKGREVISION=	1
 CATEGORIES=	sysutils
-MASTER_SITES=	http://pypi.python.org/packages/source/W/Wally/
+MASTER_SITES=	${MASTER_SITE_PYPI:=W/Wally/}
 
 MAINTAINER=	pkgsrc.gnome%gmail.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/Wally/
diff --git a/py-weberror/Makefile b/py-weberror/Makefile
index 564e86a..ef485d7 100644
--- a/py-weberror/Makefile
+++ b/py-weberror/Makefile
@@ -4,7 +4,7 @@ DISTNAME=	WebError-0.10.2
 EGG_NAME=	${DISTNAME:S/.tar//}
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/W/w/S/E/e/}
 CATEGORIES=	www python
-MASTER_SITES=	http://pypi.python.org/packages/source/W/WebError/
+MASTER_SITES=	${MASTER_SITE_PYPI:=W/WebError/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://pypi.python.org/pypi/WebError/
diff --git a/py-webflash/Makefile b/py-webflash/Makefile
index 4caeafd..5287969 100644
--- a/py-webflash/Makefile
+++ b/py-webflash/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	WebFlash-0.1a9.tar
 EGG_NAME=	WebFlash-0.1a9
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/W/w/S/F/f/S/.tar//}
 CATEGORIES=	www
-MASTER_SITES=	http://pypi.python.org/packages/source/W/WebFlash/
+MASTER_SITES=	${MASTER_SITE_PYPI:=W/WebFlash/}
 EXTRACT_SUFX=	.gz
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-webhelpers/Makefile b/py-webhelpers/Makefile
index 608b1b2..99b56e6 100644
--- a/py-webhelpers/Makefile
+++ b/py-webhelpers/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	WebHelpers-1.3
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	http://pypi.python.org/packages/source/W/WebHelpers/
+MASTER_SITES=	${MASTER_SITE_PYPI:=W/WebHelpers/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://webhelpers.groovie.org/
diff --git a/py-weblib/Makefile b/py-weblib/Makefile
index cccf032..aea8107 100644
--- a/py-weblib/Makefile
+++ b/py-weblib/Makefile
@@ -3,10 +3,10 @@
 DISTNAME=	weblib-0.1.20
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	https://pypi.python.org/packages/source/w/weblib/
+MASTER_SITES=	${MASTER_SITE_PYPI:=w/weblib/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	https://pypi.python.org/packages/source/w/weblib/
+HOMEPAGE=	${MASTER_SITE_PYPI:=w/weblib/}
 COMMENT=	Set of tools for web scraping projects
 LICENSE=	mit
 
diff --git a/py-webtest/Makefile b/py-webtest/Makefile
index 33dd2ac..aaad0fe 100644
--- a/py-webtest/Makefile
+++ b/py-webtest/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	WebTest-2.0.17
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=	www
-MASTER_SITES=	https://pypi.python.org/packages/source/W/WebTest/
+MASTER_SITES=	${MASTER_SITE_PYPI:=W/WebTest/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-wsgi-intercept/Makefile b/py-wsgi-intercept/Makefile
index 5c41ced..5622111 100644
--- a/py-wsgi-intercept/Makefile
+++ b/py-wsgi-intercept/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	wsgi_intercept-0.4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www python
-MASTER_SITES=	http://pypi.python.org/packages/source/w/wsgi_intercept/
+MASTER_SITES=	${MASTER_SITE_PYPI:=w/wsgi_intercept/}
 EXTRACT_SUFX=	.tar.gz#md5=898dbfc636fef5904aa3ea8bb0722b4b
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-wsgiref/Makefile b/py-wsgiref/Makefile
index 441205b..e201196 100644
--- a/py-wsgiref/Makefile
+++ b/py-wsgiref/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	wsgiref-0.1.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	www python
-MASTER_SITES=	http://pypi.python.org/packages/source/w/wsgiref/
+MASTER_SITES=	${MASTER_SITE_PYPI:=w/wsgiref/}
 EXTRACT_SUFX=	.zip
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
diff --git a/py-xcal-raman/Makefile b/py-xcal-raman/Makefile
index fef8882..14d11fb 100644
--- a/py-xcal-raman/Makefile
+++ b/py-xcal-raman/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	xcal_raman-0.1.5
 PKGNAME=	${PYPKGPREFIX}-xcal-raman-0.1.5
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/x/xcal_raman/
+MASTER_SITES=	${MASTER_SITE_PYPI:=x/xcal_raman/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://pypi.python.org/pypi/xcal_raman
diff --git a/py-xdress/Makefile b/py-xdress/Makefile
index fee1b05..9af8541 100644
--- a/py-xdress/Makefile
+++ b/py-xdress/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	xdress-0.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/x/xdress/
+MASTER_SITES=	${MASTER_SITE_PYPI:=x/xdress/}
 
 MAINTAINER=	kamel.derouiche%gmail.com@localhost
 HOMEPAGE=	http://xdress.org/
diff --git a/py-xlutils/Makefile b/py-xlutils/Makefile
index 9790aa2..3116b71 100644
--- a/py-xlutils/Makefile
+++ b/py-xlutils/Makefile
@@ -4,7 +4,7 @@ VERS=		1.4.1
 DISTNAME=	xlutils-${VERS}
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc
-MASTER_SITES=	http://pypi.python.org/packages/source/x/xlutils/
+MASTER_SITES=	${MASTER_SITE_PYPI:=x/xlutils/}
 
 MAINTAINER=	helgoman%users.sourceforge.net@localhost
 HOMEPAGE=	http://www.simplistix.co.uk/software/python/xlutils
diff --git a/py-yams/Makefile b/py-yams/Makefile
index 5a8cbed..6151aed 100644
--- a/py-yams/Makefile
+++ b/py-yams/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	yams-0.39.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc www
-MASTER_SITES=	https://pypi.python.org/packages/source/y/yams/
+MASTER_SITES=	${MASTER_SITE_PYPI:=y/yams/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	http://www.logilab.org/project/yams
diff --git a/py-yaprt/Makefile b/py-yaprt/Makefile
index 7c041e3..80ccce1 100644
--- a/py-yaprt/Makefile
+++ b/py-yaprt/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	yaprt-0.0.7
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	sysutils python
-MASTER_SITES=	https://pypi.python.org/packages/source/y/yaprt/
+MASTER_SITES=	${MASTER_SITE_PYPI:=y/yaprt/}
 
 MAINTAINER=	derouiche%yahoo.com@localhost
 HOMEPAGE=	https://github.com/cloudnull/yaprt.git
diff --git a/py-yellowhiggs/Makefile b/py-yellowhiggs/Makefile
index 4712217..34d9535 100644
--- a/py-yellowhiggs/Makefile
+++ b/py-yellowhiggs/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	yellowhiggs-1.0a4
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES= math
-MASTER_SITES=	http://pypi.python.org/packages/source/y/yellowhiggs/
+MASTER_SITES=	${MASTER_SITE_PYPI:=y/yellowhiggs/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://end.web.cern.ch/end/projects/yellowhiggs/
diff --git a/py-yt/Makefile b/py-yt/Makefile
index ada48ab..300c4d1 100644
--- a/py-yt/Makefile
+++ b/py-yt/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	yt-2.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	graphics python
-MASTER_SITES=	http://pypi.python.org/packages/source/y/yt/
+MASTER_SITES=	${MASTER_SITE_PYPI:=y/yt/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://yt-project.org/
diff --git a/py-z2pack/Makefile b/py-z2pack/Makefile
index a157a20..72f4d5b 100644
--- a/py-z2pack/Makefile
+++ b/py-z2pack/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	z2pack-1.1.9
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	math
-MASTER_SITES=	https://pypi.python.org/packages/source/z/z2pack/
+MASTER_SITES=	${MASTER_SITE_PYPI:=z/z2pack/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	http://z2pack.ethz.ch
diff --git a/py-zipline/Makefile b/py-zipline/Makefile
index 20e0424..d2f13b3 100644
--- a/py-zipline/Makefile
+++ b/py-zipline/Makefile
@@ -4,7 +4,7 @@
 DISTNAME=	zipline-0.5.1
 PKGNAME=        ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	finance
-MASTER_SITES=	http://pypi.python.org/packages/source/z/zipline/
+MASTER_SITES=	${MASTER_SITE_PYPI:=z/zipline/}
 
 MAINTAINER=	jihbed.research%gmail.com@localhost
 HOMEPAGE=	https://github.com/quantopian/zipline
diff --git a/py-zope.deprecation/Makefile b/py-zope.deprecation/Makefile
index d273d42..3d6f04b 100644
--- a/py-zope.deprecation/Makefile
+++ b/py-zope.deprecation/Makefile
@@ -3,7 +3,7 @@
 DISTNAME=	zope.deprecation-4.1.2
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel
-MASTER_SITES=	https://pypi.python.org/packages/source/z/zope.deprecation/
+MASTER_SITES=	${MASTER_SITE_PYPI:=z/zope.deprecation/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
 HOMEPAGE=	 http://pypi.python.org/pypi/zope.deprecation
diff --git a/trac-plugins-AuthOpenId/Makefile b/trac-plugins-AuthOpenId/Makefile
index bf6dfff..a23bda9 100644
--- a/trac-plugins-AuthOpenId/Makefile
+++ b/trac-plugins-AuthOpenId/Makefile
@@ -6,7 +6,7 @@ PKGNAME=	trac-plugins-AuthOpenId-${DISTVERS}
 PKGREVISION=	1
 EGG_NAME=	${DISTNAME}
 CATEGORIES=	www
-MASTER_SITES=	http://pypi.python.org/packages/source/T/TracAuthOpenId/
+MASTER_SITES=	${MASTER_SITE_PYPI:=T/TracAuthOpenId/}
 
 MAINTAINER=	roy%NetBSD.org@localhost
 HOMEPAGE=	http://trac.sandbox.lt/auth/wiki/AuthOpenIdPlugin


Home | Main Index | Thread Index | Old Index